Adds interaction to a console command.
More...
Adds interaction to a console command.
Definition at line 18 of file BaseCommand.php.
Elgg\Cli\BaseCommand::argument |
( |
|
$name | ) |
|
Returns argument value.
- Parameters
-
- Returns
- mixed
Definition at line 157 of file BaseCommand.php.
Elgg\Cli\BaseCommand::ask |
( |
|
$question, |
|
|
|
$default = null , |
|
|
|
$hidden = false , |
|
|
|
$required = true |
|
) |
| |
Ask a question.
- Parameters
-
string | $question | Question to ask |
mixed | $default | Default value |
bool | $hidden | Hide response |
bool | $required | User input is required |
- Returns
- mixed
Definition at line 44 of file BaseCommand.php.
Elgg\Cli\BaseCommand::assertNotEmpty |
( |
|
$answer | ) |
|
Question validator for required user response.
- Parameters
-
- Returns
- bool
- Exceptions
-
Definition at line 169 of file BaseCommand.php.
Elgg\Cli\BaseCommand::dump |
( |
|
$data | ) |
|
|
final |
Dump a variable.
- Parameters
-
- Returns
- void
Definition at line 81 of file BaseCommand.php.
Elgg\Cli\BaseCommand::dumpRegisters |
( |
| ) |
|
|
finalprotected |
Dump and output system and error messages.
- Returns
- void
Definition at line 181 of file BaseCommand.php.
Elgg\Cli\BaseCommand::error |
( |
|
$message | ) |
|
Print an error.
- Parameters
-
string | $message | Error message |
- Returns
- void
Definition at line 124 of file BaseCommand.php.
Elgg\Cli\BaseCommand::notice |
( |
|
$message | ) |
|
Print a notce.
- Parameters
-
string | $message | Error message |
- Returns
- void
Definition at line 135 of file BaseCommand.php.
Elgg\Cli\BaseCommand::option |
( |
|
$name | ) |
|
Returns option value.
- Parameters
-
- Returns
- mixed
Definition at line 146 of file BaseCommand.php.
Elgg\Cli\BaseCommand::write |
( |
|
$messages, |
|
|
|
$level = LogLevel::INFO |
|
) |
| |
|
final |
Write messages to output buffer.
- Parameters
-
string | array | $messages | Data or messages |
string | $level | Logging level/servity |
- Returns
- void
Definition at line 93 of file BaseCommand.php.
Elgg\Cli\BaseCommand::$input |
|
protected |
Elgg\Cli\BaseCommand::$output |
|
protected |
const Elgg\Cli\BaseCommand::DEFAULT_VERBOSITY = OutputInterface::VERBOSITY_NORMAL |
The documentation for this class was generated from the following file: