/** * Prepares the taskbar and adds the taskbar to the view * @return null */ protected function addTaskbar() { $hasLocalizePanel = false; $panels = $this->taskbar->getNotificationPanels(); foreach ($panels as $panel) { if ($panel instanceof LocalizePanelView) { $hasLocalizePanel = true; break; } } if (!$hasLocalizePanel) { $localizePanelView = new LocalizePanelView($this->isLocalized); $this->taskbar->addNotificationPanel($localizePanelView); } parent::addTaskbar(); }
/** * Protect the taskbar with the joppa.taskbar permission * @return null */ protected function addTaskbar() { if (SecurityManager::getInstance()->isPermissionAllowed(Module::PERMISSION_TASKBAR)) { parent::addTaskbar(); } }
/** * Prepares the taskbar and adds the taskbar to the view * @return null */ protected function addTaskbar() { $localizePanelView = new LocalizePanelView($this->isLocalized); $this->taskbar->addNotificationPanel($localizePanelView); parent::addTaskbar(); }
protected function addTaskbar() { $this->taskbar->addNotificationPanel(new LocalizePanelView(true)); parent::addTaskbar(); }