app/home/lib/Paginator.php
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 人人站CMS
* ============================================================================
* 版权所有 2015-2030 山东康程信息科技有限公司,并保留所有权利。
* 网站地址: http://www.rrzcms.com
* ----------------------------------------------------------------------------
* 如果商业用途务必到官方购买正版授权, 以免引起不必要的法律纠纷.
* ============================================================================
*/
namespace app\home\lib;
use \app\facade\route;
class Paginator
{
protected $list = [];
protected $count = 0;
protected $cur = 1;
protected $limit = 0;
protected $max = 1;
protected $style = 'cur';
protected $tag = '';
protected $hasMore;
protected $lang = 'zh-cn';
protected $rrz;
protected $env;
function __construct($data = [], $style = 'cur', $tag = '', $lang = 'zh-cn', $rrz = [], $env = []) {
isset($data['list']) and $this->list = $data['list'];
isset($data['count']) and $this->count = $data['count'];
isset($data['cur']) and $this->cur = $data['cur'];
isset($data['limit']) and $this->limit = $data['limit'];
isset($data['max']) and $this->max = $data['max'];
$this->tag = $tag;
$this->hasMore = $this->max > $this->cur;
$this->style = $style;
$this->lang = $lang;
$this->rrz = $rrz;
$this->env = $env;
}
protected function getLinks($size = 2) {
$block = [
'first' => null,
'slider' => null,
'last' => null
];
$side = $size;
$window = $side * 2;
后面还有 140 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。