메소드 | 설명 | |
---|---|---|
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. |
public generateLabels ( yii\db\TableSchema $table ) : array | ||
$table | yii\db\TableSchema | the table schema |
리턴 | array | the generated attribute labels (name => label) |
protected generateQueryClassName ( string $modelClassName ) : string | ||
$modelClassName | string | model class name |
리턴 | string | generated class name |
public generateRules ( yii\db\TableSchema $table ) : array | ||
$table | yii\db\TableSchema | the table schema |
리턴 | array | the generated validation rules |
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. |