gii\console\GenerateController 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 defa

gii\console\GenerateController formatHint()

formatHint() protected method protected void formatHint ( $hint )$hint

gii\console\GenerateController createAction()

createAction() public method Creates an action based on the given action ID. The method first checks if the action ID has been declared in actions(). If so, it will use the configuration declared there to create the action object. If not, it will look for a controller method whose name is in the format of actionXyz where Xyz stands for the action ID. If found, an yii\base\InlineAction representing that method will be created and returned. public yii\base\Action createAction ( $id )$id str

gii\console\GenerateController actions()

actions() public method Declares external actions for the controller. This method is meant to be overwritten to declare external actions for the controller. It should return an array, with array keys being action IDs, and array values the corresponding action class names or action configuration arrays. For example, return [ 'action1' => 'app\components\Action1', 'action2' => [ 'class' => 'app\components\Action2', 'property1' => 'value1', 'property

gii\console\GenerateController actionIndex()

actionIndex() public method public void actionIndex ( )

gii\console\GenerateController $uniqueID

$uniqueID public read-only property public void getUniqueID ( )

gii\console\GenerateController $overwrite

$overwrite public property Whether to overwrite all existing code files when in non-interactive mode. Defaults to false, meaning none of the existing code files will be overwritten. This option is used only when --interactive=0. public boolean $overwrite = false

gii\console\GenerateController $module

$module public property public yii\gii\Module $module = null

gii\console\GenerateController $generators

$generators public property A list of the available code generators public array $generators = []

gii\console\GenerateAction run()

run() public method public void run ( )