Example #1
0
 /**
  * Build the pagination
  * @since Version 3.10.0
  * @return string
  */
 private function buildPagination()
 {
     $this->validate();
     $this->buildStartLinks()->buildEndLinks()->buildCurrentPage()->addDividers()->addNavigation();
     $tpl = $this->Smarty->ResolveTemplate($this->params['template']);
     $caching = false;
     if (isset($this->Smarty->cache) && $this->Smarty->cache == true) {
         $caching = true;
         $this->Smarty->cache = false;
         $this->Smarty->clearCache($tpl);
     }
     $this->Smarty->Assign("pagination", $this->getParam("links"));
     $html = $this->Smarty->Fetch($tpl);
     if ($caching) {
         $this->Smarty->cache = true;
     }
     return $html;
 }