Example #1
0
 public function onAreaWorkspace(WorkspaceEvent $event)
 {
     $workspace = $event->getWorkspace();
     if ($workspace->getProject()->supportsModule('milestone')) {
         $workspace->addWorkItem('area', new WorkItem('area_milestone_editor', 'Milestones'));
     }
 }
Example #2
0
 public function onProjectWorkspace(WorkspaceEvent $event)
 {
     $workspace = $event->getWorkspace();
     if ($workspace->getProject()->supportsModule('forum')) {
         $workspace->addWorkItem('community', new WorkItem('project_forum_index', 'Forums'));
     }
 }
Example #3
0
 public function onProjectWorkspace(WorkspaceEvent $event)
 {
     $workspace = $event->getWorkspace();
     if ($workspace->getProject()->supportsModule('links')) {
         $workspace->addWorkItem('manage', new WorkItem('project_links_index', 'Important links'));
     }
 }
Example #4
0
 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'));
     }
 }
Example #5
0
 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'));
         }
     }
 }
Example #6
0
 public function showMenu(WorkspaceEvent $event)
 {
     if (null !== $this->controller) {
         $event->setCurrentWorkgroup($this->controller->breadcrumbs()->getWorkgroup());
         $event->setCurrentPage($this->controller->breadcrumbs()->getEntryPage());
     }
 }
Example #7
0
 public function onAdminWorkspace(WorkspaceEvent $event)
 {
     $workspace = $event->getWorkspace();
     $workspace->addWorkItem('projects', new WorkItem('admin_export_index', 'Export settings'));
 }
Example #8
0
 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'));
 }