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

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

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

Свойство Тип Описание
$db
$generateRelations
$migrationName
$migrationPath
$migrationTime
$tableName
$useTablePrefix

Защищенные свойства (Protected)

Свойство Тип Описание
$constans
$tableNames

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

Метод Описание
attributeLabels ( )
autoCompleteData ( )
generate ( )
generateTableName ( string $tableName ) : string Generates the table name by considering table prefix.
getDescription ( )
getName ( )
getSchemaType ( ColumnSchema $column ) : array
hints ( )
init ( )
requiredTemplates ( )
rules ( )
stickyAttributes ( )
validateDb ( ) Validates the [[db]] attribute.
validateTableName ( ) Validates the [[tableName]] attribute.

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

Метод Описание
generateColumns ( yii\db\TableSchema $table ) : array Generates validation rules for the specified table.
generateRelations ( ) : array
getDbConnection ( ) : Connection
getTableNames ( ) : array
reorderRecrusive ( array $tableNames, array &$depencies, array &$orders )
reorderTables ( array $tables, array $relations ) : array Reorder tables acourding with dependencies.

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

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

public attributeLabels ( )

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

public autoCompleteData ( )

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

public generate ( )

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

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

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

protected generateRelations ( ) : array
Результат array the generated relation declarations

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

If [[useTablePrefix]] is false, the table name will be returned without change.
public generateTableName ( string $tableName ) : string
$tableName string the table name (which may contain schema prefix)
Результат string the generated table name

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

protected getDbConnection ( ) : Connection
Результат yii\db\Connection the DB connection as specified by [[db]].

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

public getDescription ( )

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

public getName ( )

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

public getSchemaType ( ColumnSchema $column ) : array
$column yii\db\ColumnSchema
Результат array

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

protected getTableNames ( ) : array
Результат array the table names that match the pattern specified by [[tableName]].

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

public hints ( )

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

public init ( )

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

protected reorderRecrusive ( array $tableNames, array &$depencies, array &$orders )
$tableNames array
$depencies array
$orders array

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

Reorder tables acourding with dependencies.
protected reorderTables ( array $tables, array $relations ) : array
$tables array
$relations array
Результат array

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

public requiredTemplates ( )

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

public rules ( )

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

public stickyAttributes ( )

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

Validates the [[db]] attribute.
public validateDb ( )

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

Validates the [[tableName]] attribute.
public validateTableName ( )

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

$constans защищенное свойство

protected $constans

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

public $db

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

public $generateRelations

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

public $migrationName

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

public $migrationPath

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

public $migrationTime

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

public $tableName

$tableNames защищенное свойство

protected $tableNames

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

public $useTablePrefix