sphinx\gii\model\Generator validateNamespace()

validateNamespace() public method Validates the $ns attribute. public void validateNamespace ( )

sphinx\gii\model\Generator stickyAttributes()

stickyAttributes() public method Returns the list of sticky attributes. A sticky attribute will remember its value and will initialize the attribute with this value when the generator is restarted. public array stickyAttributes ( )return array List of sticky attributes

sphinx\gii\model\Generator validateDb()

validateDb() public method Validates the $db attribute. public void validateDb ( )

sphinx\gii\model\Generator validateModelClass()

validateModelClass() public method Validates the $modelClass attribute. public void validateModelClass ( )

sphinx\gii\model\Generator validateIndexName()

validateIndexName() public method Validates the $indexName attribute. public void validateIndexName ( )

sphinx\gii\model\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

sphinx\gii\model\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

sphinx\gii\model\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.

sphinx\gii\model\Generator getDescription()

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

sphinx\gii\model\Generator getDbConnection()

getDbConnection() protected method protected yii\sphinx\Connection getDbConnection ( )return yii\sphinx\Connection The Sphinx connection as specified by $db.