PHP 클래스 mootensai\enhancedgii\migration\Generator

부터: 1.1
저자: Misbahul D Munir ([email protected])
상속: extends yii\gii\Generator
파일 보기 프로젝트 열기: mootensai/yii2-enhanced-gii

공개 프로퍼티들

프로퍼티 타입 설명
$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 ( 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