構造使數據庫對象進行配置。
__construct ( string $tableName , [ string $configFileName = null ], [ string $fieldDefinition = null ], [ string $rowValues = null ]) RocksDBO _結構 ( 字符串 $ TableName的 ,[ 字符串 $ configFileName = NULL],[ 字符串 $ fieldDefinition = NULL],[ 字符串 $ rowValues = NULL])
- $tableName : the table this database object 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 : the values of the table row that should be loaded, this is usually used internally. 字符串 $ rowValues:應裝入的表行的值,這通常是在內部使用。
這將刪除您已在此對象上設置的參數相匹配的行。
Delete () 無效 刪除 ()
允許電流的字段定義緩存的版本將被刪除,通常只在內部使用。
DeleteCurrentCache () 無效 DeleteCurrentCache()
這將返回字段定義數組。
GetFieldDefinition () 無效 GetFieldDefinition()
這數據加載到田間關聯數組。
LoadAssociativeArrayData ( array $rowValues ) ,無效 LoadAssociativeArrayData( 數組 $ rowValues)
- $rowValues : the associative array to load 數組 $ rowValues:加載的關聯數組
這樣可以節省DBO的任何更改,如果你已經有了一個關鍵的價值,它將執行否則將執行插入更新。
Save () 失效 保存 ()
這將選擇與屬性設置,如果超過一行,則返回一個錯誤被拋出的所有數據。
Select () 無效 選擇 ()
__call ( 調用 函數void __( , 美元METHOD_NAME ) $參數 )
__get ( 函數void __得到 ( ) $名 )
__set ( 函數void __集 ( , 美元的名稱 , ) $值 )