I regularly use your site to answer my PHP problems! 我經常使用您的網站,回答我的PHP的問題!”
馬特

RocksDBO類

描述

這個類實現了數據庫表,可以很容易地操作,而無需編寫任何SQL。

  • RocksRelation AddRelation(): AddRelation(string $foriegnKey, string $otherTable, string $otherTableForiegnKey, string $relationName = null, string $relationType = null) adds a relation object to the RocksDBO 方法: RocksRelation AddRelation():AddRelation(字符串$ foriegnKey,字符串$ otherTable,字符串$ otherTableForiegnKey,字符串$ relationName =空字符串$ relationType = NULL)增加了有關對象的RocksDBO
  • Dominic Skinner 作者:多米尼克·斯金納
  • 0.2.1 版本:0.2.1

)位於/ RocksDBO.php(第16行)

方法摘要
__construct ( string $tableName , [ string $configFileName = null ], [ string $fieldDefinition = null ], [ string $rowValues = null ]) RocksDBO __construct字符串 $ TableName的 ,[ 字符串 $ configFileName = NULL],[ 字符串 $ fieldDefinition = NULL],[ 字符串 $ rowValues ​​= NULL])
Delete () 無效 刪除 ()
LoadAssociativeArrayData ( array $rowValues ) ,無效 LoadAssociativeArrayData數組 $ rowValues)
Save () 失效 保存 ()
Select () 無效 選擇 ()
__call ( 無效 __call , 美元METHOD_NAME ) $參數
__get ( 無效 __get ) $名
__set ( 無效 __set , 美元的名稱 ) $值
方法
(line 34 ) 構造_建設 (第34行)

構造使數據庫對象進行配置。

  • public 訪問:公眾
__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:應裝入的表行的值,這通常是在內部使用。
(line 291 ) 刪除 (291線)

這將刪除您已在此對象上設置的參數相匹配的行。

  • public 訪問:公眾
Delete () 無效 刪除 ()
(line 169 ) DeleteCurrentCache(169線)

允許電流的字段定義緩存的版本將被刪除,通常只在內部使用。

  • public 訪問:公眾
DeleteCurrentCache () 無效 DeleteCurrentCache()
(line 381 ) GetFieldDefinition(381線)

這將返回字段定義數組。

  • public 訪問:公眾
GetFieldDefinition () 無效 GetFieldDefinition()
(line 153 ) LoadAssociativeArrayData(153線)

這數據加載到田間關聯數組。

  • public 訪問:公眾
LoadAssociativeArrayData ( array $rowValues ) ,無效 LoadAssociativeArrayData( 數組 $ rowValues)
  • $rowValues : the associative array to load 數組 $ rowValues:加載的關聯數組
(line 276 ) 保存 (276線)

這樣可以節省DBO的任何更改,如果你已經有了一個關鍵的價值,它將執行否則將執行插入更新。

  • public 訪問:公眾
Save () 失效 保存 ()
(line 181 ) 選擇 (181線)

這將選擇與屬性設置,如果超過一行,則返回一個錯誤被拋出的所有數據。

  • public 訪問:公眾
Select () 無效 選擇 ()
(line 129 ) __call(129線)
  • public 訪問:公眾
__call ( 調用 函數void __( , 美元METHOD_NAME ) $參數
  • 美元METHOD_NAME
  • $參數
(line 437 ) __get(437線)
  • public 訪問:公眾
__get ( 函數void __得到 ) $名
  • 元名稱
(line 446 ) __set(446線)
  • public 訪問:公眾
__set ( 函數void __集 , 美元的名稱 ) $值
  • 元名稱
  • 美元的價值

已提供任何意見。
安全形象

書面由多米尼克·斯金納
最後更新:2011年10月25日十六點00分38秒