示例#1
0
 public function __construct($attributesList = [], $buttons = [], $template = "")
 {
     $this->buttons = $buttons;
     if (empty($template)) {
         $template = __DIR__ . self::DEFAULT_TEMPLATE;
     }
     parent::__construct($attributesList, $template);
 }
示例#2
0
 /**
  * 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);
 }
示例#3
0
 public function __construct($dataSet = [], $currentValue = null, $attributesList = [], $template = "")
 {
     parent::__construct($attributesList, $template, $dataSet, $currentValue);
 }