/** * Get a new Paginator instance. * * @param array $items * @param int $total * @param int|null $perPage * @return \Pagination\Paginator */ public function make(array $items, $total, $perPage = null) { $paginator = new Paginator($this, $items, $total, $perPage); return $paginator->setupPaginationContext(); }
/** * Create a HTML page link. * * @param int $page * @param string $text * @param string $class * @return string */ protected function getLink($page) { $url = $this->paginator->getUrl($page); return $this->getPageLinkWrapper($url, $page); }