After taking your course, my knowledge of PHP has ballooned! 你的课程后,我的PHP知识激增!”
抢劫

RocksRelation类

描述

这个类代表数据库中的关系。 执行时,它会返回一个数组RocksDBO对象或只是一个单一的一个。 这是扇贝内部使用。

  • string $foriegnKey: the name of the field in the dbo table that is the foriegn key 属性:字符串$ foriegnKey:何瑞明关键在dbo表的字段名称
  • string $otherTable: the name of the other table that it relates to 属性:字符串$ otherTable:它涉及到其他表的名称
  • string $otherTableForiegnKey: the name of the foriegn key in the other table 属性:字符串$ otherTableForiegnKey:何瑞明关键的其他表中的名称
  • string $relationName: the name of the relationship 属性:字符串$ relationName关系的名称
  • string $relationType: the type of relationship this can be null or RocksOneToOne 属性:字符串$ relationType类型的关系,这可能是null或RocksOneToOne
  • array $relations: this is a array of RocksRelation which represent the relationships related to this relationship 属性:数组$关系:代表这种关系的关系,这是一个数组RocksRelation
  • array $orderBys: this is a array of RocksOrderBy which represent the ordering of this relationship 属性:数组$ orderBys:表示这种关系的顺序,这是一个数组RocksOrderBy
  • Dominic Skinner 作者:多米尼克·斯金纳
  • 0.2.1 版本:0.2.1
  • 摘要:

)位于/ RocksRelation.php(第19行)

方法摘要
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __construct字符串 $ foriegnKey, 字符串 $ otherTable, 字符串 $ otherTableForiegnKey,[ 字符串 $ relationName = NULL],[ 字符串 $ relationType = NULL])
AddExcludedValue ( 无效 AddExcludedValue ) $值
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) ,,无效 AddOrderBy字符串 $ fieldName的 ,[ 字符串 $ orderDirection = NULL)
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) 的无效 AddRelation字符串 $ foriegnKey, 字符串 $ otherTable, 字符串 $ otherTableForiegnKey,[ 字符串 $ relationName = NULL],[ 字符串 $ relationType = NULL])
Alternative ( 无效的 替代 ) $的关系
GetOrderBy () 的无效 GetOrderBy ()
HasRelations () 无效 HasRelations ()
IsExcludedValue ( 无效 IsExcludedValue ) $值
__get ( 无效 __get ) $名
__set ( 无效 __set , $ var的 ) $ varValue)
方法
(line 41 ) 构造_建设 (第41行)

构造使关系对象进行配置。

  • public 访问:公众
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __构造字符串 $ foriegnKey, 字符串 $ otherTable, 字符串 $ otherTableForiegnKey,[ 字符串 $ relationName = NULL],[ 字符串 $ relationType = NULL])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on 字符串 $ foriegnKey:何瑞明的关键,这种关系应建立在当前对象
  • $otherTable : the other table this relationship is with 字符串 $ otherTable:这种关系是与其他表
  • $otherTableForiegnKey : the key in the other table that this relationship is with 字符串 $ otherTableForiegnKey:其他表中的关键,这关系是
  • $relationName : the name of the relationship 字符串 $ relationName 关系的名称
  • $relationType : the type of the relationship if it is a one to one relationship or not 字符串 $ relationType:关系类型,如果是一对一的关系,或不
(line 146 ) AddExcludedValue(146线)
  • public 访问:公众
AddExcludedValue ( 无效 AddExcludedValue( ) $值
  • 美元的价值
(line 91 ) AddOrderBy(91行)

订单的关系返回的项目

  • public 访问:公众
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) ,,无效 AddOrderBy( 字符串 $ fieldName的 ,[ 字符串 $ orderDirection = NULL)
  • $fieldName : the field name to be ordered 字符串 $ fieldName的 字段的名称,责令
  • $orderDirection : the direction the field should be ordered. 字符串 $ orderDirection:方向应当责令领域。 这可以采取的值RocksDesc或RocksAsc。
(line 71 ) AddRelation(71行)

在添加了一个对象,以现有的关系对象

  • public 访问:公众
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) 的无效 AddRelation( 字符串 $ foriegnKey, 字符串 $ otherTable, 字符串 $ otherTableForiegnKey,[ 字符串 $ relationName = NULL],[ 字符串 $ relationType = NULL])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on 字符串 $ foriegnKey:何瑞明的关键,这种关系应建立在当前对象
  • $otherTable : the other table this relationship is with 字符串 $ otherTable:这种关系是与其他表
  • $otherTableForiegnKey : the key in the other table that this relationship is with 字符串 $ otherTableForiegnKey:其他表中的关键,这关系是
  • $relationName : the name of the relationship 字符串 $ relationName 关系的名称
  • $relationType : the type of the relationship if it is a one to one relationship or not 字符串 $ relationType:关系类型,如果是一对一的关系,或不
(line 122 ) 替代品 (122线)
  • public 访问:公众
Alternative ( 无效的 替代 ) $的关系
  • 美元的关系
(line 133 ) GetNextAlternativeRelation(133行)
  • public 访问:公众
GetNextAlternativeRelation () 无效 GetNextAlternativeRelation()
(line 100 ) GetOrderBy(100行)

返回代表订货,这通常是在内部使用的SQL。

  • public 访问:公众
GetOrderBy () 的无效 GetOrderBy()
(line 80 ) HasRelations(80线)

这是数量关系,这种关系是有

  • public 访问:公众
HasRelations () 无效 HasRelations()
(line 152 ) IsExcludedValue(152线)
  • public 访问:公众
IsExcludedValue ( 无效 IsExcludedValue( ) $值
  • 美元的价值
(line 157 ) __get(157线)
  • public 访问:公众
__get ( 函数void __得到 ) $名
  • 元名称
(line 166 ) __set(166线)
  • public 访问:公众
__set ( 函数void __集 , $ var的 ) $ varValue)
  • $ var的
  • 美元varValue

已提供任何意见。
安全形象

书面由多米尼克·斯金纳
最后更新:2011年10月25日十六点00分38秒