gii\generators\crud\Generator rules()

rules() public method Returns the validation rules for attributes. Validation rules are used by validate() to check if attribute values are valid. Child classes may override this method to declare different validation rules. Each rule is an array with the following structure: [ ['attribute1', 'attribute2'], 'validator type', 'on' => ['scenario1', 'scenario2'], //...other parameters... ] where attribute list: required, specifies the attributes array to be validated, for s

gii\generators\crud\Generator requiredTemplates()

requiredTemplates() public method Returns a list of code template files that are required. Derived classes usually should override this method if they require the existence of certain template files. public array requiredTemplates ( )return array List of code template files that are required. They should be file paths relative to $templatePath.

gii\generators\crud\Generator hints()

hints() public method Returns the list of hint messages. The array keys are the attribute names, and the array values are the corresponding hint messages. Hint messages will be displayed to end users when they are filling the form for the generator. public array hints ( )return array The list of hint messages

gii\generators\crud\Generator getViewPath()

getViewPath() public method public string getViewPath ( )return string The controller view path

gii\generators\crud\Generator getTableSchema()

getTableSchema() public method Returns table schema for current model class or false if it is not an active record public boolean|yii\db\TableSchema getTableSchema ( )

gii\generators\crud\Generator getSearchAttributes()

getSearchAttributes() public method public array getSearchAttributes ( )return array Searchable attributes

gii\generators\crud\Generator getNameAttribute()

getNameAttribute() public method public void getNameAttribute ( )

gii\generators\crud\Generator getName()

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

gii\generators\crud\Generator getDescription()

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

gii\generators\crud\Generator getControllerID()

getControllerID() public method public string getControllerID ( )return string The controller ID (without the module ID prefix)