public function UIDialog($attributesList = array(), $buttons = array(), $template = "") { $this->buttons = $buttons; if (empty($template)) { $template = self::DEFAULT_TEMPLATE; } parent::UIComponent($attributesList, $template); }
/** * Display Pagination control. * * @param string $url Basic URL of the pagination links (common part). * @param integer $pagesNumber Total pages number. * @param integer $currentPage Current page number. * @param integer $pagesOffset Number of visible pagination links before and * after current page link. * @param string $template Path to the pagination HTML template. */ public function UIPagination($url = "", $pagesNumber = 1, $currentPage = 1, $pagesOffset = 3, $template = "") { $this->url = $url; $this->pagesNumber = $pagesNumber; $this->setCurrentPage($currentPage); $this->pagesOffset = $pagesOffset; if ($this->pagesNumber > 1) { $this->correctPages(); if (empty($template)) { $template = self::DEFAULT_TEMPLATE; } parent::UIComponent(array(), $template); } }