__construct() __construct(mixed $items, mixed $listRows, mixed $currentPage = null, mixed $total = null, mixed $simple = false, mixed $options = []) : mixed Parameters mixed $items mixed $listRows mixed $currentPage mixed $total mixed $simple mixed $options Returns mixed —
make() make( $items, $listRows, null $currentPage = null, null $total = null, bool $simple = false, array $options = []) : \think\Paginator Parameters $items $listRows null $currentPage null $total bool $simple array $options Returns \think\Paginator —
getCurrentPage() getCurrentPage(string $varPage = 'page', int $default = 1) : int 自动获取当前页码 Parameters string $varPage int $default Returns int —
getUrlRange() getUrlRange(int $start, int $end) : array 创建一组分页链接 Parameters int $start int $end Returns array —
fragment() fragment(string|null $fragment) : $this 设置URL锚点 Parameters string|null $fragment Returns $this —
appends() appends(array|string $key, string|null $value = null) : $this 添加URL参数 Parameters array|string $key string|null $value Returns $this —
getIterator() getIterator() : \Traversable Retrieve an external iterator Returns \Traversable — An instance of an object implementing Iterator or Traversable
offsetExists() offsetExists(mixed $offset) : bool Whether a offset exists Parameters mixed $offset Returns bool —
offsetGet() offsetGet(mixed $offset) : mixed Offset to retrieve Parameters mixed $offset Returns mixed —
offsetSet() offsetSet(mixed $offset, mixed $value) : mixed Offset to set Parameters mixed $offset mixed $value Returns mixed —
jsonSerialize() jsonSerialize() : mixed Specify data which should be serialized to JSON Returns mixed —
__call() __call(mixed $name, mixed $arguments) : mixed Parameters mixed $name mixed $arguments Returns mixed —
setCurrentPage() setCurrentPage(mixed $currentPage) : mixed Parameters mixed $currentPage Returns mixed —