Exemplo n.º 1
0
 public function display($tpl = null)
 {
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
Exemplo n.º 2
0
 public function display($tpl = null)
 {
     $this->operations = new HelperUniteOperationsRev();
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     $this->arrSliders = $this->get("ArrSliders");
     $this->sliderID = $this->get("SliderID");
     $this->linkSliderSettings = HelperUniteRev::getViewUrl_Slider($this->sliderID);
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     parent::display($tpl);
 }
Exemplo n.º 3
0
 /**
  * display function
  * 
  */
 public function display($tpl = null)
 {
     $this->operations = new HelperUniteOperationsRev();
     // Initialiase variables.
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->state = $this->get('State');
     if (!empty($this->item->id)) {
         $this->isEmpty = false;
         $this->arrSlides = $this->operations->getSlidesShort($this->item->sliderid);
     }
     $arrParams = $this->item->get("params");
     $this->params = new JRegistry();
     $this->params->loadArray($arrParams);
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addScriptsAndStyles();
     $this->setEditLayersSettings();
     $this->addToolbar();
     parent::display($tpl);
 }
Exemplo n.º 4
0
 /**
  * the main disply function
  */
 public function display($tpl = null)
 {
     // Initialiase variables.
     $this->form = $this->get('Form');
     $this->item = $this->get('Item');
     $this->state = $this->get('State');
     $this->isNew = $this->item->id == 0;
     $this->sliderID = $this->item->id;
     $this->checkExportImport();
     $this->viewSliderPattern = HelperUniteRev::getViewUrl_Slider("");
     if ($this->_layout == "default" || $this->_layout == "edit") {
         if ($this->isNew == false) {
             $this->linkEditSlides = HelperUniteRev::getViewUrl_Items($this->item->id);
         }
     }
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     $this->addToolbar();
     parent::display($tpl);
 }