PHP Класс luya\console\commands\BaseCrudController
As we can not ensure to access the gii model generate class we have to copy the base of the class, check the see section.
Показать файл
Открыть проект
Открытые свойства
Защищенные свойства (Protected)
Открытые методы
Метод |
Описание |
|
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. |
|
getSqlTablesArray ( ) : array |
Get the sql tables from the current database connection |
|
Защищенные методы
Описание методов
generateClassName()
защищенный Метод
Generates a class name from the specified table name.
protected generateClassName ( string $tableName, boolean $useSchemaName = null ) : string |
$tableName |
string |
the table name (which may contain schema prefix) |
$useSchemaName |
boolean |
should schema name be included in the class name, if present |
Результат |
string |
the generated class name |
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) |
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 |
getDbConnection()
защищенный Метод
protected getDbConnection ( ) : Connection |
Результат |
Connection |
the DB connection as specified by [[db]]. |
getSqlTablesArray()
публичный Метод
Get the sql tables from the current database connection
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. |
Описание свойств
$classNames защищенное свойство
$tableName публичное свойство
$tableNames защищенное свойство
$useSchemaName публичное свойство
Whether to use schem name or not