Свойство | Тип | Описание | |
---|---|---|---|
$db | |||
$generateRelations | |||
$migrationName | |||
$migrationPath | |||
$migrationTime | |||
$tableName | |||
$useTablePrefix |
Свойство | Тип | Описание | |
---|---|---|---|
$constans | |||
$tableNames |
Метод | Описание | |
---|---|---|
attributeLabels ( ) | ||
autoCompleteData ( ) | ||
generate ( ) | ||
generateTableName ( string $tableName ) : string | Generates the table name by considering table prefix. | |
getDescription ( ) | ||
getName ( ) | ||
getSchemaType ( |
||
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 ( ) : |
||
getTableNames ( ) : array | ||
reorderRecrusive ( array $tableNames, array &$depencies, array &$orders ) | ||
reorderTables ( array $tables, array $relations ) : array | Reorder tables acourding with dependencies. |
protected generateColumns ( yii\db\TableSchema $table ) : array | ||
$table | yii\db\TableSchema | the table schema |
Результат | array | the generated validation rules |
protected generateRelations ( ) : array | ||
Результат | array | the generated relation declarations |
public generateTableName ( string $tableName ) : string | ||
$tableName | string | the table name (which may contain schema prefix) |
Результат | string | the generated table name |
protected getDbConnection ( ) : |
||
Результат | the DB connection as specified by [[db]]. |
public getSchemaType ( |
||
$column | ||
Результат | array |
protected getTableNames ( ) : array | ||
Результат | array | the table names that match the pattern specified by [[tableName]]. |
public validateTableName ( ) |