Ejemplo n.º 1
0
 function display($tpl = null)
 {
     // Get data from the model
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     ZhYandexMapHelper::addSubmenu('mapmarkers');
     $mapList = $this->get('mapList');
     $this->assignRef('mapList', $mapList);
     $groupList = $this->get('groupList');
     $this->assignRef('groupList', $groupList);
     $userList = $this->get('userList');
     $this->assignRef('userList', $userList);
     $iconList = $this->get('iconList');
     $this->assignRef('iconList', $iconList);
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode('<br />', $errors));
         return false;
     }
     // Set the toolbar
     $this->addToolBar();
     // Display the template
     parent::display($tpl);
     // Set the document
     $this->setDocument();
 }
Ejemplo n.º 2
0
 function display($tpl = null)
 {
     ZhYandexMapHelper::addSubmenu('abouts');
     $this->addToolBar();
     // Display the template
     parent::display($tpl);
     // Set the document
     $this->setDocument();
 }
Ejemplo n.º 3
0
 /**
  * display task
  *
  * @return void
  */
 function display($cachable = false, $urlparams = false)
 {
     $vName = JRequest::getCmd('view', 'ZhYandexMaps');
     JRequest::setVar('view', $vName);
     // call parent behavior
     parent::display($cachable, $urlparams);
     // Set the submenu
     ZhYandexMapHelper::addSubmenu($vName);
     return $this;
 }
Ejemplo n.º 4
0
 function display($tpl = null)
 {
     // Get data from the model
     $items = $this->get('Items');
     $pagination = $this->get('Pagination');
     $this->state = $this->get('State');
     ZhYandexMapHelper::addSubmenu('maptypes');
     // Check for errors.
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode('<br />', $errors));
         return false;
     }
     // Assign data to the view
     $this->items = $items;
     $this->pagination = $pagination;
     // Set the toolbar
     $this->addToolBar();
     // Display the template
     parent::display($tpl);
     // Set the document
     $this->setDocument();
 }