console\Controller prompt()

prompt() public method Prompts the user for input and validates it public string prompt ( $text, $options = [] )$text string Prompt string $options array The options to validate the input: required: whether it is required or not default: default value if no input is inserted by the user pattern: regular expression pattern to validate user input validator: a callable function to validate input. The function must accept two parameters:$input: the user input to validate $error: the error

console\Controller options()

options() public method Returns the names of valid options for the action (id) An option requires the existence of a public member variable whose name is the option name. Child classes may override this method to specify possible options. Note that the values setting via options are not available until beforeAction() is being called. public array options ( $actionID )$actionID string The action id of the current request return array The names of the options valid for the action

console\Controller parseDocCommentDetail()

parseDocCommentDetail() protected method Returns full description from the docblock. protected string parseDocCommentDetail ( $reflection )$reflection Reflector

console\Controller optionAliases()

optionAliases() public method (available since version 2.0.8) Returns option alias names. Child classes may override this method to specify alias options. See also \yii\console\options($actionID). public array optionAliases ( )return array The options alias names valid for the action where the keys is alias name for option and value is option name.

console\Controller getOptionValues()

getOptionValues() public method Returns properties corresponding to the options for the action id Child classes may override this method to specify possible properties. public array getOptionValues ( $actionID )$actionID string The action id of the current request return array Properties corresponding to the options for the action

console\Controller isColorEnabled()

isColorEnabled() public method Returns a value indicating whether ANSI color is enabled. ANSI color is enabled only if $color is set true or is not set and the terminal supports ANSI color. public boolean isColorEnabled ( $stream = \STDOUT )$stream resource The stream to check. return boolean Whether to enable ANSI style in output.

console\Controller getPassedOptions()

getPassedOptions() public method Returns the names of valid options passed during execution. public array getPassedOptions ( )return array The names of the options passed during execution

console\Controller getPassedOptionValues()

getPassedOptionValues() public method Returns the properties corresponding to the passed options public array getPassedOptionValues ( )return array The properties corresponding to the passed options

console\Controller getActionOptionsHelp()

getActionOptionsHelp() public method Returns the help information for the options for the action. The returned value should be an array. The keys are the option names, and the values are the corresponding help information. Each value must be an array of the following structure: type: string, the PHP type of this argument. default: string, the default value of this argument comment: string, the comment of this argument The default implementation will return the help information extracted fro

console\Controller getHelp()

getHelp() public method Returns help information for this controller. You may override this method to return customized help. The default implementation returns help information retrieved from the PHPDoc comment. public string getHelp ( )