コード例 #1
0
 /**
  * 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');
     }
 }
コード例 #2
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');
     }
     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');
     }
 }
コード例 #3
0
ファイル: view.html.php プロジェクト: jboydacs/com_joombbb
 /**
  * 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');
     }
 }