コンストラクタは、構成するデータベースオブジェクトの配列を可能にします。
__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オブジェクトの配列。
これはDBOArray内の項目数をカウントします。
Count () int型の カウント ()
これは、配列の順序を決定します。 望むように適用される多くの注文bysとして存在することができます。
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を取ることができます。
これは、このオブジェクトに設定したパラメータに一致する行を削除します。 また、これを$ results配列をクリアします。
Delete () ボイド を削除 ()
これは、フィールド定義の配列を返します。
GetFieldDefinition () ボイド GetFieldDefinition()
これは、$結果の配列にRocksDBOオブジェクトの配列を読み込みます。
LoadDBOObjects ( array $rowValues ) ボイド LoadDBOObjects( 配列 $ rowValues)
- $rowValues : is the array of RocksDBO objects. 配列 $ rowValues は :RocksDBOオブジェクトの配列です。
これにより、データベースへの$の結果ですべてのRocksDBOオブジェクトが保存されます。 INSERT / UPDATEは、各オブジェクトに対して個別に実行されます。
Save () 保存 ()が無効になる場合
これは、設定されたプロパティを持つすべてのデータが選択されます。 見つけた場合、この関数は、複数行を返すことができます。
Select () 選択して 無効になる ()
__call ( ボイド __call( , メソッド名$、 ) $パラメータ )
__get ( ボイド __get( ) $名 )
__set ( ボイド __set( , $ nameは 、 ) $値 )