PHP Класс mootensai\enhancedgii\model\Generator

С версии: 2.0
Автор: Qiang Xue ([email protected])
Наследование: extends yii\gii\Generator
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$UUIDColumn
$blameableValue
$createdAt
$createdBy
$deletedAt
$deletedBy
$generateAttributeHints
$generateBaseOnly
$generateLabelsFromComments
$generateMigrations
$generateQuery
$generateRelations
$hiddenColumns
$isTree
$nameAttribute
$nsModel * @var $tableSchema TableSchema
$optimisticLock
$queryBaseClass
$queryClass
$queryNs
$skippedColumns
$timestampValue
$updatedAt
$updatedBy
$useTablePrefix

Открытые методы

Метод Описание
attributeLabels ( )
generate ( )
generateLabels ( yii\db\TableSchema $table ) : array Generates the attribute labels for the specified table.
generateRules ( yii\db\TableSchema $table ) : array Generates validation rules for the specified table.
getDescription ( )
getName ( )
hints ( )
requiredTemplates ( )
rules ( )
stickyAttributes ( )

Защищенные методы

Метод Описание
generateQueryClassName ( string $modelClassName ) : string Generates a query class name from the specified model class name.
isColumnAutoIncremental ( yii\db\TableSchema $table, array $columns ) : boolean Checks if any of the specified columns is auto incremental.

Описание методов

attributeLabels() публичный метод

public attributeLabels ( )

generate() публичный метод

public generate ( )

generateLabels() публичный метод

Generates the attribute labels for the specified table.
public generateLabels ( yii\db\TableSchema $table ) : array
$table yii\db\TableSchema the table schema
Результат array the generated attribute labels (name => label)

generateQueryClassName() защищенный метод

Generates a query class name from the specified model class name.
protected generateQueryClassName ( string $modelClassName ) : string
$modelClassName string model class name
Результат string generated class name

generateRules() публичный метод

Generates validation rules for the specified table.
public generateRules ( yii\db\TableSchema $table ) : array
$table yii\db\TableSchema the table schema
Результат array the generated validation rules

getDescription() публичный метод

public getDescription ( )

getName() публичный метод

public getName ( )

hints() публичный метод

public hints ( )

isColumnAutoIncremental() защищенный метод

Checks if any of the specified columns is auto incremental.
protected isColumnAutoIncremental ( yii\db\TableSchema $table, array $columns ) : boolean
$table yii\db\TableSchema the table schema
$columns array columns to check for autoIncrement property
Результат boolean whether any of the specified columns is auto incremental.

requiredTemplates() публичный метод

public requiredTemplates ( )

rules() публичный метод

public rules ( )

stickyAttributes() публичный метод

public stickyAttributes ( )

Описание свойств

$UUIDColumn публичное свойство

public $UUIDColumn

$blameableValue публичное свойство

public $blameableValue

$createdAt публичное свойство

public $createdAt

$createdBy публичное свойство

public $createdBy

$deletedAt публичное свойство

public $deletedAt

$deletedBy публичное свойство

public $deletedBy

$generateAttributeHints публичное свойство

public $generateAttributeHints

$generateBaseOnly публичное свойство

public $generateBaseOnly

$generateLabelsFromComments публичное свойство

public $generateLabelsFromComments

$generateMigrations публичное свойство

public $generateMigrations

$generateQuery публичное свойство

public $generateQuery

$generateRelations публичное свойство

public $generateRelations

$hiddenColumns публичное свойство

public $hiddenColumns

$isTree публичное свойство

public $isTree

$nameAttribute публичное свойство

public $nameAttribute

$nsModel публичное свойство

* @var $tableSchema TableSchema
public $nsModel

$optimisticLock публичное свойство

public $optimisticLock

$queryBaseClass публичное свойство

public $queryBaseClass

$queryClass публичное свойство

public $queryClass

$queryNs публичное свойство

public $queryNs

$skippedColumns публичное свойство

public $skippedColumns

$timestampValue публичное свойство

public $timestampValue

$updatedAt публичное свойство

public $updatedAt

$updatedBy публичное свойство

public $updatedBy

$useTablePrefix публичное свойство

public $useTablePrefix