public function generate($pageCurrent, $totalRows)
    {
        $this->totalRows = $totalRows;
        $this->setPossiblePages();
        $this->setPageCurrent($pageCurrent);

        if ($this->possiblePages < 2) {
            return;
        }

        $pageCurrent = $this->pageCurrent;
        $pagination = $this->getPaginationContainer();

        // previous
        if ($pageCurrent > 1) {
            $pagination['previous'] = $this->getPaginationPage($this->urlBuildPageLink($pageCurrent - 1));
        }
        
        for ($index = 1; $index <= $this->possiblePages; $index ++) {
            $pagination['pages'][$index] = $this->getPaginationPage($this->urlBuildPageLink($index), ($pageCurrent == $index ? true : false));
        }

        // next
        if ($pageCurrent < $this->possiblePages) {
            $pagination['next'] = $this->getPaginationPage($this->urlBuildPageLink($pageCurrent + 1));
        }

        return $pagination;
    }