function onAfterExecuteTask($controller) { $controllerName = strtolower($controller->getName()); $method = strtolower($controller->get('task')); $task = $controllerName . '.' . $method; //what tasks need the submenuhelper added? $aTasks = array('config.display', 'orders.listing', 'payments.listing', 'balances.listing', 'themes.listthemes', 'currencies.listing', 'pricing.listing', 'gateways.listing', 'mailman.mails', 'about.main'); if (!in_array($task, $aTasks)) { return; } BidsHelperAdmin::subMenuHelper(); }
/** * Configure the Linkbar. * * @param string The name of the active view. * * @return void * @since 1.6 */ public static function addSubmenu($vName) { JToolBarHelper::title('test', 'auction'); JLoader::register('BidsHelperAdmin', JPATH_ROOT . DS . 'components' . DS . 'com_bids' . DS . 'helpers' . DS . 'admin.php'); BidsHelperAdmin::subMenuHelper(); }
function display($tpl = null) { $this->addToolBar(); BidsHelperAdmin::subMenuHelper(); parent::display($tpl); }