\PhalApi_ModelQuery

PhalApi_ModelQuery 查询对象(值对象)

  • 我们强烈建议应将此继承类的实例当作值对象处理,虽然我们提供了便利的结构化获取
  • 如需要拷贝值对象,可以结合使用构造函数和toArray()

Summary

Methods
Properties
Constants
__construct()
__set()
__get()
toArray()
$readCache
$writeCache
$id
$timestamp
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$readCache

$readCache : boolean

Type

boolean — 是否读取缓存

$writeCache

$writeCache : boolean

Type

boolean — 是否写入缓存

$id

$id : \string/int

Type

\string/int — ID

$timestamp

$timestamp : integer

Type

integer — 时间戳

Methods

__construct()

__construct(  $queryArr = array()) 

Parameters

$queryArr

__set()

__set(  $name,   $value) 

Parameters

$name
$value

__get()

__get(  $name) 

Parameters

$name

toArray()

toArray()