/** * Override Build Toolbar function, only need Publish, Unpublish and Delete button */ function _buildToolbar() { $viewName = $this->getName(); $controller = OSInflector::singularize($this->getName()); JToolBarHelper::title(JText::_($this->lang_prefix . '_' . strtoupper($viewName) . '_MANAGEMENT')); JToolBarHelper::deleteList(JText::_($this->lang_prefix . '_DELETE_' . strtoupper($this->getName()) . '_CONFIRM'), $controller . '.remove'); JToolBarHelper::publishList($controller . '.publish'); JToolBarHelper::unpublishList($controller . '.unpublish'); }
/** * Build the toolbar for view list */ function _buildToolbar() { $viewName = $this->getName(); $controller = OSInflector::singularize($this->getName()); JToolBarHelper::title(JText::_($this->lang_prefix . '_' . strtoupper($viewName) . '_MANAGEMENT')); JToolBarHelper::editList($controller . '.edit'); if (JFactory::getUser()->authorise('core.admin', 'com_osmembership')) { JToolBarHelper::preferences('com_osmembership'); } }
/** * Build the toolbar for view list */ function _buildToolbar() { $viewName = $this->getName(); $controller = OSInflector::singularize($this->getName()); JToolBarHelper::title(JText::_($this->lang_prefix . '_' . strtoupper($viewName) . '_MANAGEMENT')); JToolBarHelper::deleteList(JText::_($this->lang_prefix . '_DELETE_' . strtoupper($this->getName()) . '_CONFIRM'), $controller . '.remove'); JToolBarHelper::editList($controller . '.edit'); JToolBarHelper::addNew($controller . '.add'); JToolBarHelper::custom($controller . '.copy', 'copy.png', 'copy_f2.png', 'Copy', true); JToolBarHelper::publishList($controller . '.publish'); JToolBarHelper::unpublishList($controller . '.unpublish'); }
/** * Build the toolbar for view list */ function _buildToolbar() { $viewName = $this->getName(); $controller = OSInflector::singularize($this->getName()); JToolBarHelper::title(JText::_($this->lang_prefix . '_' . strtoupper($viewName) . '_MANAGEMENT')); JToolBarHelper::deleteList(JText::_($this->lang_prefix . '_DELETE_' . strtoupper($this->getName()) . '_CONFIRM'), $controller . '.remove'); JToolBarHelper::editList($controller . '.edit'); JToolBarHelper::addNew($controller . '.add'); JToolBarHelper::publishList($controller . '.publish'); JToolBarHelper::unpublishList($controller . '.unpublish'); if (JFactory::getUser()->authorise('core.admin', 'com_osmembership')) { JToolBarHelper::preferences('com_osmembership'); } }
/** * Build the toolbar for view list */ function _buildToolbar() { $viewName = $this->getName(); $controller = OSInflector::singularize($this->getName()); $edit = JRequest::getVar('edit'); if ($edit) { $toolbarTitle = $this->lang_prefix . '_' . $viewName . '_EDIT'; } else { $toolbarTitle = $this->lang_prefix . '_' . $viewName . '_NEW'; } JToolBarHelper::title(JText::_(strtoupper($toolbarTitle))); JToolBarHelper::save($controller . '.save'); JToolBarHelper::apply($controller . '.apply'); JToolBarHelper::cancel($controller . '.cancel'); }
/** * Build the toolbar for view list */ function _buildToolbar() { $viewName = $this->getName(); if ($viewName == 'status') { $controller = $viewName; } else { $controller = OSInflector::singularize($viewName); } $edit = JRequest::getVar('edit'); $text = $edit ? JText::_($this->lang_prefix . '_EDIT') : JText::_($this->lang_prefix . '_NEW'); JToolBarHelper::title(JText::_($this->lang_prefix . '_' . $viewName) . ': <small><small>[ ' . $text . ' ]</small></small>'); JToolBarHelper::save($controller . '.save'); JToolBarHelper::apply($controller . '.apply'); JToolBarHelper::cancel($controller . '.cancel'); }
/** * Custom toolbar * @see OSViewList::_buildToolbar() */ function _buildToolbar() { $viewName = $this->getName(); $controller = OSInflector::singularize($this->getName()); JToolBarHelper::title(JText::_($this->lang_prefix . '_' . strtoupper($viewName) . '_MANAGEMENT')); JToolBarHelper::deleteList(JText::_($this->lang_prefix . '_DELETE_' . strtoupper($this->getName()) . '_CONFIRM'), $controller . '.remove'); JToolBarHelper::addNew($controller . '.add'); JToolBarHelper::custom('csv_export', 'export', 'export', 'Export Tickets', false); }