__construct() __construct(mixed $items, int $listRows, int $currentPage = 1, int $total = null, bool $simple = false, array $options = []) : mixed Parameters mixed $items int $listRows int $currentPage int $total bool $simple array $options Returns mixed —
make() make(mixed $items, int $listRows, int $currentPage = 1, int $total = null, bool $simple = false, array $options = []) : \think\Paginator Parameters mixed $items int $listRows int $currentPage int $total bool $simple array $options Returns \think\Paginator —
getCurrentPage() getCurrentPage(string $varPage = 'page', int $default = 1) : int 自动获取当前页码 Parameters string $varPage int $default Returns int —
currentPageResolver() currentPageResolver(\Closure $resolver) : mixed 设置获取当前页码闭包 Parameters \Closure $resolver Returns mixed —
getCurrentPath() getCurrentPath(string $default = '/') : string 自动获取当前的path Parameters string $default Returns string —
currentPathResolver() currentPathResolver(\Closure $resolver) : mixed 设置获取当前路径闭包 Parameters \Closure $resolver Returns mixed —
getUrlRange() getUrlRange(int $start, int $end) : array 创建一组分页链接 Parameters int $start int $end Returns array —
fragment() fragment(string|null $fragment = null) : $this 设置URL锚点 Parameters string|null $fragment Returns $this —
getCollection() getCollection() : \think\Collection|\think\model\Collection 获取数据集 Returns \think\Collection|\think\model\Collection —
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 —