public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
$router->addRoute(new OW_Route('eventx.user_list', 'event/:eventId/users/:list', 'EVENTX_CTRL_Base', 'eventUserLists')); $router->addRoute(new OW_Route('eventx.private_event', 'event/:eventId/private', 'EVENTX_CTRL_Base', 'privateEvent')); $router->addRoute(new OW_Route('eventx.invite_accept', 'event/:eventId/:list/invite_accept', 'EVENTX_CTRL_Base', 'inviteListAccept')); $router->addRoute(new OW_Route('eventx.invite_decline', 'event/:eventId/:list/invite_decline', 'EVENTX_CTRL_Base', 'inviteListDecline')); $router->addRoute(new OW_Route('eventx_list_category', 'events/category', "EVENTX_CTRL_Base", 'listCategory')); $router->addRoute(new OW_Route('eventx_category_items', 'events/category/:category', "EVENTX_CTRL_Base", 'listCategoryItems')); $router->addRoute(new OW_Route('eventx_tag_list', 'event/tagged', "EVENTX_CTRL_Base", 'taglist')); $router->addRoute(new OW_Route('eventx_view_tagged_list', 'event/tagged/:tag', "EVENTX_CTRL_Base", 'taglist')); $router->addRoute(new OW_Route('eventx_view_calendar', 'event/calendar', "EVENTX_CTRL_Base", 'calendar')); function eventx_add_auth_labels(BASE_CLASS_EventCollector $event) { $language = OW::getLanguage(); $event->add(array('eventx' => array('label' => $language->text('eventx', 'auth_group_label'), 'actions' => array('add_event' => $language->text('eventx', 'auth_action_label_add_event'), 'view_event' => $language->text('eventx', 'auth_action_label_view_event'), 'add_comment' => $language->text('eventx', 'auth_action_label_add_comment'))))); } OW::getEventManager()->bind('admin.add_auth_labels', 'eventx_add_auth_labels'); EVENTX_CLASS_InvitationHandler::getInstance()->init(); $credits = new EVENTX_CLASS_Credits(); OW::getEventManager()->bind('usercredits.on_action_collect', array($credits, 'bindCreditActionsCollect')); function eventx_on_notify_actions(BASE_CLASS_EventCollector $e) { $e->add(array('section' => 'eventx', 'action' => 'event-invitation', 'sectionIcon' => 'ow_ic_calendar', 'sectionLabel' => OW::getLanguage()->text('eventx', 'notifications_section_label'), 'description' => OW::getLanguage()->text('eventx', 'notifications_new_message'), 'selected' => true)); $e->add(array('section' => 'eventx', 'sectionIcon' => 'ow_ic_files', 'sectionLabel' => OW::getLanguage()->text('eventx', 'notifications_section_label'), 'action' => 'event-add_comment', 'description' => OW::getLanguage()->text('eventx', 'email_notification_comment_setting'), 'selected' => true)); } OW::getEventManager()->bind('notifications.collect_actions', 'eventx_on_notify_actions'); function eventx_on_user_invite(OW_Event $e) { $params = $e->getParams(); OW::getCacheManager()->clean(array(EVENTX_BOL_EventUserDao::CACHE_TAG_EVENTX_USER_LIST . $params['eventId'])); } OW::getEventManager()->bind('eventx.invite_user', 'eventx_on_user_invite'); function eventx_feed_entity_add(OW_Event $e)