프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$baseClass | |||
$connectionId | |||
$modelClass | |||
$modelPath | |||
$tableName | |||
$tablePrefix |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$relations | list of candidate relation code. The array are indexed by AR class names and relation names. Each element represents the code of the one relation in one AR class. |
메소드 | 설명 | |
---|---|---|
attributeLabels ( ) | ||
generateLabels ( $table ) | ||
generateRules ( $table ) | ||
getRelations ( $className ) | ||
getTableSchema ( $tableName ) | ||
init ( ) | ||
prepare ( ) | ||
requiredTemplates ( ) | ||
rules ( ) | ||
validateBaseClass ( $attribute, $params ) | ||
validateConnectionId ( $attribute, $params ) | ||
validateModelPath ( $attribute, $params ) | ||
validateTableName ( $attribute, $params ) |
메소드 | 설명 | |
---|---|---|
generateClassName ( $tableName ) | ||
generateRelationName ( $tableName, $fkName, $multiple ) : string | Generate a name for use as a relation name (inside relations() function in a model). | |
generateRelations ( ) | ||
getDbConnection ( ) | ||
isRelationTable ( $table ) : boolean | Checks if the given table is a "many to many" pivot table. | |
removePrefix ( $tableName, $addBrackets = true ) |
protected generateRelationName ( $tableName, $fkName, $multiple ) : string | ||
리턴 | string | the relation name |
protected isRelationTable ( $table ) : boolean | ||
리턴 | boolean | true if table matches description of helpter table. |
protected $relations |