public function __construct($attributesList = [], $buttons = [], $template = "") { $this->buttons = $buttons; if (empty($template)) { $template = __DIR__ . self::DEFAULT_TEMPLATE; } parent::__construct($attributesList, $template); }
/** * Display Pagination control. * * @param string $url Basic URL of the pagination links (common part). * @param int $pagesNumber Total pages number. * @param int $currentPage Current page number. * @param int $pagesOffset Number of visible pagination links before and * after current page link. * @param string $template Path to the pagination HTML template. */ public function __construct($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::__construct([], $template); }
public function __construct($dataSet = [], $currentValue = null, $attributesList = [], $template = "") { parent::__construct($attributesList, $template, $dataSet, $currentValue); }