I think this organisation will be one of the big players of the future in the PHP world. 我认为,这个组织将在未来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 = NULL,字符串$ 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 ) 构造__construct(34行)

该构造使数据库对象进行配置。

  • public 访问:公共
__construct ( string $tableName , [ string $configFileName = null ], [ string $fieldDefinition = null ], [ string $rowValues = null ]) RocksDBO __construct( 字符串 美元的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 ( 无效 __call( , $ method_name ) $参数
  • $ method_name
  • 美元参数
(line 437 ) __get(437行)
  • public 访问:公共
__get ( 无效 的__get( ) $名
  • 元名称
(line 446 ) __set(446行)
  • public 访问:公共
__set ( 无效 __set( , 美元的名称 ) $值
  • 元名称
  • 美元的价值

没有意见已提供。
安全形象

作者由Dominic斯金纳
最后更新:2011年10月25日16点00分38秒