gii\Generator render()

render() public method Generates code using the specified code template and parameters. Note that the code template will be used as a PHP file. public string render ( $template, $params = [] )$template string The code template file. This must be specified as a file path relative to $templatePath. $params array List of parameters to be passed to the template file. return string The generated code

gii\Generator loadStickyAttributes()

loadStickyAttributes() public method Loads sticky attributes from an internal file and populates them into the generator. public void loadStickyAttributes ( )

gii\Generator isReservedKeyword()

isReservedKeyword() public method public boolean isReservedKeyword ( $value )$value string The attribute to be validated return boolean Whether the value is a reserved PHP keyword.

gii\Generator init()

init() public method Initializes the object. This method is invoked at the end of the constructor after the object is initialized with the given configuration. public void init ( )

gii\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\Generator getTemplatePath()

getTemplatePath() public method public string getTemplatePath ( )return string The root path of the template files that are currently being used. throws yii\base\InvalidConfigException if $template is invalid

gii\Generator getStickyDataFile()

getStickyDataFile() public method public string getStickyDataFile ( )return string The file path that stores the sticky attribute values.

gii\Generator getName()

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

gii\Generator getDescription()

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

gii\Generator generateString()

generateString() public method Generates a string depending on enableI18N property public string generateString ( $string = '', $placeholders = [] )$string string The text be generated $placeholders array The placeholders to use by Yii::t()