Exemple #1
0
 protected function addToolBar()
 {
     $canDo = GAnalyticsHelper::getActions();
     if ($canDo->get('core.create')) {
         JToolBarHelper::custom('dashboard.reset', 'purge.png', 'purge.png', JText::_('COM_GANALYTICS_PROFILES_VIEW_DASHBOARD_RESET_BUTTON'), false);
     }
     parent::addToolbar();
 }
Exemple #2
0
 protected function addToolbar()
 {
     if ($this->items !== null) {
         $canDo = GAnalyticsHelper::getActions();
         if ($canDo->get('core.create')) {
             JToolBarHelper::custom('import.save', 'new.png', 'new.png', 'add', false);
         }
         JToolBarHelper::cancel('import.cancel', 'JTOOLBAR_CANCEL');
     }
     parent::addToolbar();
 }
Exemple #3
0
 public function addToolbar()
 {
     JRequest::setVar('hidemainmenu', true);
     $canDo = GAnalyticsHelper::getActions();
     if ($canDo->get('core.edit')) {
         JToolBarHelper::apply('profile.apply', 'JTOOLBAR_APPLY');
         JToolBarHelper::save('profile.save', 'JTOOLBAR_SAVE');
     }
     JToolBarHelper::cancel('profile.cancel', 'JTOOLBAR_CLOSE');
     parent::addToolbar();
 }
 protected function addToolBar()
 {
     $canDo = GAnalyticsHelper::getActions();
     if ($canDo->get('core.create')) {
         JToolBarHelper::custom('import.import', 'upload.png', 'upload.png', JText::_('COM_GANALYTICS_PROFILES_VIEW_IMPORT_BUTTON'), false);
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('profile.edit', 'JTOOLBAR_EDIT');
     }
     if ($canDo->get('core.delete')) {
         JToolBarHelper::deleteList('', 'profiles.delete', 'JTOOLBAR_DELETE');
     }
     parent::addToolbar();
 }
Exemple #5
0
 protected function addToolbar()
 {
     $canDo = GAnalyticsHelper::getActions();
     if (empty($this->title)) {
         $this->title = 'COM_GANALYTICS_' . strtoupper($this->getName()) . '_VIEW_TITLE';
     }
     if (empty($this->icon)) {
         $this->icon = strtolower($this->getName());
     }
     JToolBarHelper::title(JText::_($this->title), $this->icon);
     // 		JFactory::getDocument()->addStyleDeclaration('.icon-48-'.$this->icon.' {background-image: url(../media/com_ganalytics/images/admin/48-'.$this->icon.'.png);background-repeat: no-repeat;}');
     if ($canDo->get('core.admin')) {
         JToolBarHelper::preferences('com_ganalytics', 500);
         JToolBarHelper::divider();
     }
 }
 public function reset()
 {
     if (!GAnalyticsHelper::getActions()->get('core.create')) {
         $this->setRedirect('index.php?option=com_ganalytics', JText::_('COM_GANALYTICS_DASHBOARD_NO_PERMISSION'));
         return;
     }
     $this->getModel()->reset();
     $this->setRedirect('index.php?option=com_ganalytics');
 }