gii\generators\extension\Generator getName()

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

gii\generators\extension\Generator getKeywordsArrayJson()

getKeywordsArrayJson() public method public string getKeywordsArrayJson ( )return string A json encoded array with the given keywords

gii\generators\extension\Generator getDescription()

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

gii\generators\extension\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\extension\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\extension\Generator $vendorName

$vendorName public property public $vendorName = null

gii\generators\extension\Generator $type

$type public property public $type = "yii2-extension"

gii\generators\extension\Generator $title

$title public property public $title = null

gii\generators\extension\Generator $packageName

$packageName public property public $packageName = "yii2-"

gii\generators\extension\Generator $outputPath

$outputPath public read-only property public boolean getOutputPath ( )