console\Controller getActionArgsHelp()

getActionArgsHelp() public method

Returns the help information for the anonymous arguments for the action.

The returned value should be an array. The keys are the argument names, and the values are the corresponding help information. Each value must be an array of the following structure:

  • required: boolean, whether this argument is required.
  • 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 from the doc-comment of the parameters corresponding to the action method.

public array getActionArgsHelp ( $action )
$action yii\base\Action
return array

The help information of the action arguments

doc_Yii
2016-10-30 16:54:43
Comments
Leave a Comment

Please login to continue.