Your Developer Exam showed me just how much there is to PHP. "開発者の試験は、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 ) コンストラクタ__construct(41行)

コンストラクタは、リレーションオブジェクトが設定できるようになります。

  • public アクセス:公共
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __construct( 文字列 $ 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:それは1対1の関係であるかどうか関係の種類
(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:それは1対1の関係であるかどうか関係の種類
(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 ( ボイド __get( ) $名
  • $名
(line 166 ) __set(ライン166)
  • public アクセス:公共
__set ( ボイド __set( , $ VAR、 ) $ varValue)
  • $ VAR
  • $ varValue

コメントが提供されていない。
セキュリティイメージ

ドミニクスキナーによって書か
最終更新日:2011年10月25日午後04時00分38秒を