After taking your course, my knowledge of PHP has ballooned! 你的课程后,我的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秒