gii\generators\form\Generator getName()

getName() public method public string getName ( )return string Name of the code generator

gii\generators\form\Generator getModelAttributes()

getModelAttributes() public method public array getModelAttributes ( )return array List of safe attributes of $modelClass

gii\generators\form\Generator getDescription()

getDescription() public method public string getDescription ( )return string The detailed description of the generator.

gii\generators\form\Generator generate()

generate() public method Generates the code based on the current user input and the specified code template files. This is the main method that child classes should implement. Please refer to yii\gii\generators\controller\Generator::generate() as an example on how to implement this method. public yii\gii\CodeFile[] generate ( )return yii\gii\CodeFile[] A list of code files to be created.

gii\generators\form\Generator attributeLabels()

attributeLabels() public method Returns the attribute labels. Attribute labels are mainly used for display purpose. For example, given an attribute firstName, we can declare a label First Name which is more user-friendly and can be displayed to end users. By default an attribute label is generated using generateAttributeLabel(). This method allows you to explicitly specify attribute labels. Note, in order to inherit labels defined in the parent class, a child class needs to merge the parent

gii\generators\form\Generator $viewPath

$viewPath public property public $viewPath = '@app/views'

gii\generators\form\Generator $viewName

$viewName public property public $viewName = null

gii\generators\form\Generator $scenarioName

$scenarioName public property public $scenarioName = null

gii\generators\form\Generator $name

$name public read-only property Name of the code generator public string getName ( )

gii\generators\form\Generator $modelClass

$modelClass public property public $modelClass = null