Elgg
Version master
|
Abstract command with some utility methods. More...
Public Member Functions | |
execute (InputInterface $input, OutputInterface $output) | |
{} More... | |
![]() | |
ask ($question, $default=null, $hidden=false, $required=true) | |
Ask a question. More... | |
dump ($data) | |
Dump a variable. More... | |
write ($messages, $level=LogLevel::INFO) | |
Write messages to output buffer. More... | |
error ($message) | |
Print an error. More... | |
notice ($message) | |
Print a notce. More... | |
option ($name) | |
Returns option value. More... | |
argument ($name) | |
Returns argument value. More... | |
assertNotEmpty ($answer) | |
Question validator for required user response. More... | |
Protected Member Functions | |
command () | |
Command to be executed. More... | |
login () | |
Login a user defined by –as option. More... | |
logout () | |
Logout a user. More... | |
setLanguage () | |
Set the language for this cli command. More... | |
![]() | |
dumpRegisters () | |
Dump and output system and error messages. More... | |
Additional Inherited Members | |
![]() | |
const | DEFAULT_VERBOSITY = OutputInterface::VERBOSITY_NORMAL |
![]() | |
$input | |
$output | |
Abstract command with some utility methods.
Definition at line 12 of file Command.php.
|
abstractprotected |
Command to be executed.
This method method should return an integer code of the error (or 0 for success). Optionally, the method can return a callable that will receive the instance of this command as an argument
Reimplemented in Elgg\Cli\UpgradeListCommand, Elgg\Cli\UpgradeBatchCommand, Elgg\Cli\PluginsListCommand, Elgg\Cli\PluginsDeactivateCommand, Elgg\Cli\PluginsActivateCommand, Elgg\Cli\DatabaseUnseedCommand, Elgg\Cli\DatabaseSeedersCommand, Elgg\Cli\DatabaseSeedCommand, Elgg\Cli\CronCommand, Elgg\Cli\CachePurgeCommand, Elgg\Cli\CacheInvalidateCommand, and Elgg\Cli\CacheClearCommand.
|
final |
{}
Definition at line 17 of file Command.php.
|
finalprotected |
Login a user defined by –as option.
RuntimeException |
Definition at line 63 of file Command.php.
|
finalprotected |
|
finalprotected |
Set the language for this cli command.
Definition at line 99 of file Command.php.