55 abstract protected function command();
63 final protected function login() {
64 if (!$this->getDefinition()->hasOption(
'as')) {
78 elgg_log(
"Logged in as $username [guid: $user->guid]");
elgg_is_logged_in()
Returns whether or not the user is currently logged in.
execute(InputInterface $input, OutputInterface $output)
{}
Adds interaction to a console command.
login()
Login a user defined by –as option.
error($message)
Print an error.
get_user_by_username($username)
Get user by username.
dumpRegisters()
Dump and output system and error messages.
elgg_log($message, $level=\Psr\Log\LogLevel::NOTICE)
Log a message.
Abstract command with some utility methods.
_elgg_services()
Get the global service provider.
command()
Command to be executed.
option($name)
Returns option value.