Phalcon\Paginator\Pager\Layout\Bootstrap::getRendered PHP Method

getRendered() public method

public getRendered ( array $options = [] ) : string
$options array
return string
    public function getRendered(array $options = [])
    {
        $result = '<ul class="pagination">';
        $bootstrapSelected = '<li class="disabled"><span>{%page}</span></li>';
        $originTemplate = $this->selectedTemplate;
        $this->selectedTemplate = $bootstrapSelected;
        $this->addMaskReplacement('page', '&laquo;', true);
        $options['page_number'] = $this->pager->getPreviousPage();
        $result .= $this->processPage($options);
        $this->selectedTemplate = $originTemplate;
        $this->removeMaskReplacement('page');
        $result .= parent::getRendered($options);
        $this->selectedTemplate = $bootstrapSelected;
        $this->addMaskReplacement('page', '&raquo;', true);
        $options['page_number'] = $this->pager->getNextPage();
        $result .= $this->processPage($options);
        $this->selectedTemplate = $originTemplate;
        $result .= '</ul>';
        return $result;
    }
Bootstrap