public function onAreaWorkspace(WorkspaceEvent $event) { $workspace = $event->getWorkspace(); if ($workspace->getProject()->supportsModule('milestone')) { $workspace->addWorkItem('area', new WorkItem('area_milestone_editor', 'Milestones')); } }
public function onProjectWorkspace(WorkspaceEvent $event) { $workspace = $event->getWorkspace(); if ($workspace->getProject()->supportsModule('forum')) { $workspace->addWorkItem('community', new WorkItem('project_forum_index', 'Forums')); } }
public function onProjectWorkspace(WorkspaceEvent $event) { $workspace = $event->getWorkspace(); if ($workspace->getProject()->supportsModule('links')) { $workspace->addWorkItem('manage', new WorkItem('project_links_index', 'Important links')); } }
public function onAreaWorkspace(WorkspaceEvent $event) { $workspace = $event->getWorkspace(); if ($workspace->getProject()->supportsModule('course')) { $workspace->addWorkItem('summary', new WorkItem('area_course_results', 'Course results')); $workspace->addWorkItem('area', new WorkItem('area_course_index', 'Courses')); } }
public function onAreaWorkspace(WorkspaceEvent $event) { $workspace = $event->getWorkspace(); if ($workspace->getProject()->supportsModule('edk')) { $workspace->addWorkgroup(new Workgroup('participants', 'Participants', 'male', 4)); $workspace->addWorkItem('area', new WorkItem('area_note_index', 'WWW: area information')); $workspace->addWorkItem('area', new WorkItem('area_route_index', 'Routes')); $workspace->addWorkItem('participants', new WorkItem('area_reg_settings_index', 'Registration settings')); $workspace->addWorkItem('participants', new WorkItem('area_edk_message_index', 'Messages')); $workspace->addWorkItem('participants', new WorkItem('area_stats_participant_index', 'Participant statistics')); if ($this->authChecker->isGranted('ROLE_AREA_PD_ADMIN')) { $workspace->addWorkItem('participants', new WorkItem('area_edk_participant_index', 'Participants')); } } }
public function showMenu(WorkspaceEvent $event) { if (null !== $this->controller) { $event->setCurrentWorkgroup($this->controller->breadcrumbs()->getWorkgroup()); $event->setCurrentPage($this->controller->breadcrumbs()->getEntryPage()); } }
public function onAdminWorkspace(WorkspaceEvent $event) { $workspace = $event->getWorkspace(); $workspace->addWorkItem('projects', new WorkItem('admin_export_index', 'Export settings')); }
public function onUserWorkspace(WorkspaceEvent $event) { $workspace = $event->getWorkspace(); $workspace->addWorkgroup(new Workgroup('profile', 'Profile', 'user', 1)); $workspace->addWorkgroup(new Workgroup('areas', 'Areas', 'flag', 2)); $workspace->addWorkItem('profile', new WorkItem('user_invitation_index', 'Invitations')); $workspace->addWorkItem('profile', new WorkItem('user_profile_personal_info', 'Personal information')); $workspace->addWorkItem('profile', new WorkItem('user_profile_settings', 'Settings')); $workspace->addWorkItem('profile', new WorkItem('user_profile_photo', 'Manage photo')); $workspace->addWorkItem('profile', new WorkItem('user_profile_change_password', 'Change password')); $workspace->addWorkItem('profile', new WorkItem('user_profile_change_mail', 'Change e-mail')); $workspace->addWorkItem('areas', new WorkItem('user_area_request_insert', 'Request area')); $workspace->addWorkItem('areas', new WorkItem('user_area_request_index', 'Your area requests')); $workspace->addWorkItem('areas', new WorkItem('user_place_index', 'Your places')); }