yii\gii\generators\model\Generator::attributeLabels PHP Method

attributeLabels() public method

public attributeLabels ( )
    public function attributeLabels()
    {
        return array_merge(parent::attributeLabels(), ['ns' => 'Namespace', 'db' => 'Database Connection ID', 'tableName' => 'Table Name', 'modelClass' => 'Model Class Name', 'baseClass' => 'Base Class', 'generateRelations' => 'Generate Relations', 'generateRelationsFromCurrentSchema' => 'Generate Relations from Current Schema', 'generateLabelsFromComments' => 'Generate Labels from DB Comments', 'generateQuery' => 'Generate ActiveQuery', 'queryNs' => 'ActiveQuery Namespace', 'queryClass' => 'ActiveQuery Class', 'queryBaseClass' => 'ActiveQuery Base Class', 'useSchemaName' => 'Use Schema Name']);
    }

Usage Example

Example #1
0
 /**
  * @inheritdoc
  */
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), ['generateModelClass' => 'Generate Model Class']);
 }
All Usage Examples Of yii\gii\generators\model\Generator::attributeLabels