Your open source Rocks PHP Library has really made developing PHP easier! "あなたのオープンソースロックスPHPライブラリは、本当に簡単にPHPの開発行っています!"
アラン

RocksDBOArrayクラス

説明

このクラスは、簡単に任意のSQLを記述することなく操作することがデータベースのテーブルを有効にします。

また、クラスRocksDBOでは不可能な複数行の操作を可能にします。

  • Gaurang Patel 著者:Gaurangパテル
  • 0.2.1 バージョン:0.2.1

) / RocksDBOArray.php(14行目)に位置して

変数の概要
$Results 混在 $結果
メソッドの概要
__construct ( string $tableName , [ string $configFileName = null ], [ string $fieldDefinition = null ], [ RocksDBO[] $rowValues = null ]) RocksDBOArray __construct文字列 $ tableNameを 、[ 文字列 $ configFileName = NULL]、[ 文字列 $ fieldDefinition = NULL]、[RocksDBO [] $ rowValues ​​= NULL])
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) ボイド AddOrderBy文字列 $ fieldNameに 、[ 文字列 $ orderDirection = NULL])
Count () int型の カウント ()
Delete () ボイド を削除 ()
LoadDBOObjects ( array $rowValues ) ボイド LoadDBOObjects配列 $ rowValues)
Save () 無効 保存 ()を
Select () 無効 を選択します ()
__call ( ボイド __call , メソッド名$、 ) $パラメータ
__get ( ボイド __get ) $名
__set ( ボイド __set , $ nameは ) $値
変数
$Results (line 20 ) 混在 $結果 (20行目)
  • public アクセス:公共
の方法
(line 33 ) コンストラクタ__construct(33行目)

コンストラクタは、構成するデータベースオブジェクトの配列を可能にします。

  • public アクセス:公共
__construct ( string $tableName , [ string $configFileName = null ], [ string $fieldDefinition = null ], [ RocksDBO[] $rowValues = null ]) RocksDBOArray __construct( 文字列 $ tableNameを 、[ 文字列 $ configFileName = NULL]、[ 文字列 $ fieldDefinition = NULL]、[RocksDBO [] $ rowValues ​​= NULL])
  • $tableName : the table this database object array should be created for 文字列 $ tableName:これのデータベースオブジェクトの配列がテーブルに作成する必要があります
  • $configFileName : the configuration filename that should be used for this object, if null the default is used 文字列 $ configFileName:デフォルトが使用されているnullの場合、このオブジェクトに使用するコンフィギュレーションファイル名
  • $fieldDefinition : any pre-created field definitions, this is usually used internally. 文字列 $ fieldDefinition:任意のあらかじめ作成されたフィールドの定義は、これは通常、内部的に使用されます。
  • $rowValues : array of RocksDBO objects that should be loaded. RocksDBO [] $ rowValues:ロードすべきRocksDBOオブジェクトの配列。
(line 261 ) カウント (ライン261)

これはDBOArray内の項目数をカウントします。

  • public アクセス:公共
Count () int型の カウント ()
(line 282 ) AddOrderBy(ライン282)

これは、配列の順序を決定します。 望むように適用される多くの注文bysとして存在することができます。

  • 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 207 ) 削除 (行207)

これは、このオブジェクトに設定したパラメータに一致する行を削除します。 また、これを$ results配列をクリアします。

  • public アクセス:公共
Delete () ボイド を削除 ()
(line 241 ) GetFieldDefinition(ライン241)

これは、フィールド定義の配列を返します。

  • public アクセス:公共
GetFieldDefinition () ボイド GetFieldDefinition()
(line 123 ) LoadDBOObjects(123行目)

これは、$結果の配列にRocksDBOオブジェクトの配列を読み込みます。

  • public アクセス:公共
LoadDBOObjects ( array $rowValues ) ボイド LoadDBOObjects( 配列 $ rowValues)
  • $rowValues : is the array of RocksDBO objects. 配列 $ rowValues ​​は :RocksDBOオブジェクトの配列です。
(line 191 ) 保存 (ライン191)

これにより、データベースへの$の結果ですべてのRocksDBOオブジェクトが保存されます。 INSERT / UPDATEは、各オブジェクトに対して個別に実行されます。

  • public アクセス:公共
Save () 保存 ()が無効になる場合
(line 137 ) セレクト (ライン137)

これは、設定されたプロパティを持つすべてのデータが選択されます。 見つけた場合、この関数は、複数行を返すことができます。

  • public アクセス:公共
Select () 選択して 無効になる ()
(line 99 ) __call(99行)
  • public アクセス:公共
__call ( ボイド __call( , メソッド名$、 ) $パラメータ
  • $ method_nameは
  • $パラメータ
(line 246 ) __get(ライン246)
  • public アクセス:公共
__get ( ボイド __get( ) $名
  • $名
(line 255 ) __set(ライン255)
  • public アクセス:公共
__set ( ボイド __set( , $ nameは ) $値
  • $名
  • $値

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

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