/**
  * Add the page title and toolbar.
  *
  * @return  void
  */
 protected function addToolbar()
 {
     $canDo = buildSubMenu::getActions();
     $user = JFactory::getUser();
     JToolBarHelper::title(JText::_('Recordings'), 'generic.png');
     JToolBarHelper::preferences('com_bigbluebutton', '550');
     if (!version_compare(JVERSION, '3', '<')) {
         JHtmlSidebar::setAction('index.php?option=com_bigbluebutton&view=records');
     }
 }
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  */
 protected function addToolbar()
 {
     $canDo = buildSubMenu::getActions();
     $user = JFactory::getUser();
     JToolBarHelper::title(JText::_('Meeting'), 'generic.png');
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('meeting.add');
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('meeting.edit');
     }
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'meetings.delete', 'JTOOLBAR_EMPTY_TRASH');
     }
     JToolBarHelper::preferences('com_bigbluebutton', '550');
     if (!version_compare(JVERSION, '3', '<')) {
         JHtmlSidebar::setAction('index.php?option=com_bigbluebutton&view=meetings');
     }
 }
Esempio n. 3
0
 /**
  * Add the page title and toolbar.
  *
  * @return  void
  */
 protected function addToolbar()
 {
     $canDo = buildSubMenu::getActions();
     $user = JFactory::getUser();
     JToolBarHelper::title(JText::_('Meeting'), 'generic.png');
     if ($canDo->get('core.create')) {
         JToolBarHelper::addNew('meeting.add');
         JToolBarHelper::custom('category.add', 'new.png', 'new.png', 'Add Category', false);
         JToolBarHelper::custom('type.add', 'new.png', 'new.png', 'Add Type', false);
         JToolBarHelper::custom('excludegroup.add', 'new.png', 'new.png', 'Exclude a Group', false);
     }
     if ($canDo->get('core.edit')) {
         JToolBarHelper::editList('category.edit');
     }
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'categories.delete', 'Delete');
     }
     JToolBarHelper::preferences('com_bbb', '550');
     if (!version_compare(JVERSION, '3', '<')) {
         JHtmlSidebar::setAction('index.php?option=com_bbb&view=categories');
     }
 }