|
Elgg
Version master
|
Abstract command with some utility methods. More...
Public Member Functions | |
| execute (InputInterface $input, OutputInterface $output) | |
| {} More... | |
Public Member Functions inherited from Elgg\Cli\BaseCommand | |
| ask ($question, $default=null, $hidden=false, $required=true) | |
| Ask a question. More... | |
| write ($messages, $style='info') | |
| Write messages to output buffer. 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... | |
Protected Member Functions inherited from Elgg\Cli\BaseCommand | |
| dumpRegisters () | |
| Dump and output system and error messages. More... | |
Additional Inherited Members | |
Public Attributes inherited from Elgg\Cli\BaseCommand | |
| const | DEFAULT_VERBOSITY = OutputInterface::VERBOSITY_NORMAL |
Protected Attributes inherited from Elgg\Cli\BaseCommand | |
| $input | |
| $output | |
Abstract command with some utility methods.
Definition at line 13 of file Command.php.
|
abstractprotected |
Command to be executed.
This 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 18 of file Command.php.
|
finalprotected |
Login a user defined by –as option.
| RuntimeException |
Definition at line 72 of file Command.php.
|
finalprotected |
|
finalprotected |
Set the language for this cli command.
Definition at line 108 of file Command.php.