I had no idea at all about PHP or programming until I started reading your website! 我不知道,在所有關於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秒