protected function __construct() { self::$scripts = array(EYE_ROOT . '/extern/js/prototype.js', EYE_ROOT . '/extern/js/eyeos.utils.js', EYE_ROOT . '/extern/js/qx.ui.decoration.RoundBorderBeveled.js', EYE_ROOT . '/extern/js/eyeos.ui.menu.Button.js', EYE_ROOT . '/extern/js/eyeos.ui.menu.Separator.js', EYE_ROOT . '/extern/js/eyeos.ui.menu.CheckBox.js', EYE_ROOT . '/extern/js/eyeos.ui.menu.SwitchButton.js', EYE_ROOT . '/extern/js/eyeos.ui.menu.Menu.js', EYE_ROOT . '/extern/js/eyeos.ui.menubar.MenuBar.js', EYE_ROOT . '/extern/js/eyeos.ui.menubar.Button.js', EYE_ROOT . '/extern/js/eyeos.ui.genericbar.IItems.js', EYE_ROOT . '/extern/js/eyeos.ui.genericbar.IActions.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.ToolBar.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.MenuButton.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.Button.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.Part.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.Part.Grid.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.Header.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.ImageHeader.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.LabelHeader.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.SelectBox.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.ListItem.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.Spinner.js', EYE_ROOT . '/extern/js/eyeos.ui.form.Spinner.js', EYE_ROOT . '/extern/js/eyeos.ui.form.SelectBox.js', EYE_ROOT . '/extern/js/eyeos.ui.form.ColorButton.js', EYE_ROOT . '/extern/js/eyeos.ui.form.Slider.js', EYE_ROOT . '/extern/js/eyeos.ui.control.ColorPopup.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.ColorButton.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.ImageMenuButton.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.CheckBox.js', EYE_ROOT . '/extern/js/eyeos.ui.toolbar.ToggleButton.js', EYE_ROOT . '/extern/js/eyeos.ui.tree.TreeFolder.js', EYE_ROOT . '/extern/js/eyeos.ui.tree.TreeColorFolder.js', EYE_ROOT . '/extern/js/jquery/jquery-1.5.1.js', EYE_ROOT . '/extern/js/qx.ui.EyeDesktop.js', EYE_ROOT . '/extern/js/eyeos.ui.Window.js', EYE_ROOT . '/extern/js/qx.ui.EyePanel.js', EYE_ROOT . '/extern/js/qx.ui.EyeTaskBar.js', EYE_ROOT . '/extern/js/qx.ui.EyeTaskButtons.js', EYE_ROOT . '/extern/js/qx.ui.EyeTabDesktop.js', EYE_ROOT . '/extern/js/eyeos.files.File.js', EYE_ROOT . '/extern/js/eyeos.dashboard.Board.js', EYE_ROOT . '/extern/js/eyeos.dashboard.Container.js', EYE_ROOT . '/extern/js/eyeos.dashboard.Widget.js', EYE_ROOT . '/extern/js/eyeos/netSync/lib/ByteSocket.js', EYE_ROOT . '/extern/js/eyeos/netSync/lib/StompClient.js', EYE_ROOT . '/extern/js/eyeos/netSync/NetSync.js', EYE_ROOT . '/extern/js/eyeos/netSync/Message.js', EYE_ROOT . '/extern/js/eyeos/AbstractMetadata.js', EYE_ROOT . '/extern/js/eyeos/contacts/Contact.js', EYE_ROOT . '/extern/js/eyeos/contacts/ContactManager.js', EYE_ROOT . '/extern/js/eyeos/contacts/Metadata.js', EYE_ROOT . '/extern/js/eyeos/events/Event.js', EYE_ROOT . '/extern/js/eyeos/events/EventInformation.js', EYE_ROOT . '/extern/js/eyeos/tag/BasicTag.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/Events/Scroller.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/Events/rowrendererDefault.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/Events/Page.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/Events/Sidebar.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/Events/FilterButton.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/Events/Table.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/Events/Search.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/Page.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/TagButton.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/Item.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/ContactAdd.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/ContactAll.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/AdminInviteContact.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/ContactPending.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/GroupAll.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/GroupAdd.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/NewGroupWindow.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/GroupAdminWindow.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/GroupTag.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/GroupCalendar.js', EYE_ROOT . '/extern/js/eyeos/ui/tabs/Application.js', EYE_ROOT . '/extern/js/eyeos/ui/widgets/LocationSelectBox.js', EYE_ROOT . '/extern/js/eyeos/ui/widgets/LocationComboBox.js', EYE_ROOT . '/extern/js/eyeos/ui/widgets/TreeLocationComboBox.js', EYE_ROOT . '/extern/js/eyeos/ui/widgets/celleditor.LocationSelectBox.js', EYE_ROOT . '/extern/js/eyeos/ui/widgets/TextArea.js', EYE_ROOT . '/extern/js/eyeos/ui/widgets/Image.js', EYE_ROOT . '/extern/js/eyeos.system.EyeApplication.js', EYE_ROOT . '/extern/js/eyeos.dialogs.js', EYE_ROOT . '/extern/js/eyeos.dialogs.FileChooser.js', EYE_ROOT . '/extern/js/eyeos.dialogs.IconChooser.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.SocialBar.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.SocialTab.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.ISocialBox.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.Label.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.Info.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.InfoBox.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.Activity.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.ActivityBox.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.TagWindow.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.TagBox.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.Note.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.NoteBox.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.Shared.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.SharedBox.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.ShareWindow.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.ShareWindowItem.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.SharedWithBox.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.SharedWithContact.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.SharedElement.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.ContextButton.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.MenuButton.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.Relation.js', EYE_ROOT . '/extern/js/SocialBar/InfoFactory/eyeos.socialbar.InfoFactory.js', EYE_ROOT . '/extern/js/SocialBar/InfoFactory/eyeos.socialbar.file2InfoConverter.js', EYE_ROOT . '/extern/js/SocialBar/SharedFactory/eyeos.socialbar.SharedFactory.js', EYE_ROOT . '/extern/js/SocialBar/SharedFactory/eyeos.socialbar.file2SharedConverter.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.URLBox.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.URLComposite.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.URLElement.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.URLWindow.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.URLWindow.toolbar.Actions.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.URLWindow.toolbar.bottom.Items.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.URLWindow.toolbar.bottom.Conf.js', EYE_ROOT . '/extern/js/SocialBar/eyeos.socialbar.URLWindow.toolbar.top.Items.js', EYE_ROOT . '/extern/js/security.js', EYE_ROOT . '/extern/js/php.full.namespaced.min.js'); }
public function processRequest(MMapRequest $request, MMapResponse $response) { self::$Logger->debug('Processing request: ' . $request); self::$CurrentRequest = $request; self::$CurrentResponse = $response; try { $managerFound = false; foreach ($this->getAllMMapManagers() as $MMapManagerName) { $myManager = call_user_func(array($MMapManagerName, 'getInstance')); if ($myManager->checkRequest($request)) { $managerFound = true; $myManager->processRequest($request, $response); break; } } // default manager => draw initial screen if (!$managerFound) { $myManager = MMapScreen::getInstance(); $myManager->processRequest($request, $response); } } catch (Exception $e) { $response->getHeaders()->append('Content-type:text/plain'); self::$Logger->error('Uncaught exception while processing request: ' . $request); self::$Logger->error('Exception message: ' . $e->getMessage() . ' [' . $e->getFile() . ' - l.' . $e->getLine() . ']'); self::$Logger->error(ExceptionStackUtil::getStackTrace($e, false)); if ($e instanceof EyeSessionExpiredException) { $controlMessageBodyRenderer = new ControlMessageBodyRenderer(ControlMessageBodyRenderer::TYPE_SESSION_EXPIRED); } else { $controlMessageBodyRenderer = new ControlMessageBodyRenderer(ControlMessageBodyRenderer::TYPE_EXCEPTION, $e); } $response->setBodyRenderer($controlMessageBodyRenderer); } if (self::$Logger->isInfoEnabled()) { self::$Logger->info('Finished processing request: ' . $request . ', preparing to render response...'); if (self::$Logger->isDebugEnabled()) { self::$Logger->debug((string) $response); } } $this->handleClientMessageQueue($response); $this->renderResponse($response); if (self::$Logger->isInfoEnabled()) { self::$Logger->info('Finished rendering response'); } }