选择语言 :

 Core_Pagination::get_or_set_data

获取或读取数据

Pagination Core_Pagination::get_or_set_data( string $key [, int $value = null ] )
since
3.0

参数列表

参数 类型 描述 默认值
$key string $key
$value int $value null
返回值
  • Pagination
File: ./core/classes/pagination.class.php
protected function get_or_set_data($key, $value = null)
{
    if (null===$value)
    {
        return $this->__get($key);
    }
    else
    {
        $this->__set($key, $value);

        return $this;
    }
}