Свойство | Type | Description | |
---|---|---|---|
$db | |||
$generateRelations | |||
$migrationName | |||
$migrationPath | |||
$migrationTime | |||
$tableName | |||
$useTablePrefix |
Свойство | Type | Description | |
---|---|---|---|
$constans | |||
$tableNames |
Méthode | Description | |
---|---|---|
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. |
Méthode | Description | |
---|---|---|
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 |
Résultat | array | the generated validation rules |
protected generateRelations ( ) : array | ||
Résultat | array | the generated relation declarations |
public generateTableName ( string $tableName ) : string | ||
$tableName | string | the table name (which may contain schema prefix) |
Résultat | string | the generated table name |
protected getDbConnection ( ) : |
||
Résultat | the DB connection as specified by [[db]]. |
public getSchemaType ( |
||
$column | ||
Résultat | array |
protected getTableNames ( ) : array | ||
Résultat | array | the table names that match the pattern specified by [[tableName]]. |
public validateTableName ( ) |