Beispiel #1
0
 public function UIDialog($attributesList = array(), $buttons = array(), $template = "")
 {
     $this->buttons = $buttons;
     if (empty($template)) {
         $template = self::DEFAULT_TEMPLATE;
     }
     parent::UIComponent($attributesList, $template);
 }
 /**
  * Sets the master control
  *
  * @return void
  */
 protected function setMaster($view, Model $model = null)
 {
     $this->assertInsideRenderingContext();
     $presentation = $this->spawn($view, $model);
     $masterPage = $this->getMasterPage($presentation);
     if ($this->control) {
         Assert::isTrue($this->control instanceof UIPage, 'masterpage can be set for UIPage only, %s given', get_class($this->control));
         $this->control->setMasterPage($masterPage);
     }
     $presentation->setUIControl($masterPage);
 }
Beispiel #3
0
 /**
  * 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);
     }
 }
Beispiel #4
0
 public function UI_CheckBoxPanel($dataSet = array(), $currentValue = null, $attributesList = array(), $template = "")
 {
     parent::UI_Component($attributesList, $template, $dataSet, $currentValue);
 }