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(); }
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(); }
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(); }