获取或读取数据
Pagination Core_Pagination::get_or_set_data( string $key [, int $value = null ] )
参数列表
参数 类型 描述 默认值 $key
string
$key $value
int
$value null
Pagination
protected function get_or_set_data($key, $value = null)
{
if (null===$value)
{
return $this->__get($key);
}
else
{
$this->__set($key, $value);
return $this;
}
}