public function init() { if (!OW::getRegistry()->get("baseInited")) { $handler = new BASE_CLASS_EventHandler(); $handler->genericInit(); OW::getRegistry()->set("baseInited", true); } $em = OW::getEventManager(); $em->bind(self::EVENT_COLLECT_AUTHORIZATION_ACTIONS, array($this, 'onCollectBaseAuthLabels')); $em->bind(self::EVENT_COLLECT_AUTHORIZATION_ACTIONS, array($this, 'onCollectMailboxAuthLabels')); $em->bind(self::EVENT_COLLECT_AUTHORIZATION_ACTIONS, array($this, 'onCollectPhotoAuthLabels')); $em->bind(self::EVENT_COLLECT_AUTHORIZATION_ACTIONS, array($this, 'onCollectVirtualGiftsAuthLabels')); $em->bind(SKADATEIOS_ACTRL_Ping::PING_EVENT . '.notifications', array($this, 'onPingNotifications')); $em->bind(OW_EventManager::ON_AFTER_ROUTE, array($this, "onAfterRoute")); $em->bind('mailbox.renderOembed', array($this, 'onRenderOembedInMailbox')); $em->bind('wink.renderWink', array($this, 'onRenderWinkInMailbox')); $em->bind('wink.renderWinkBack', array($this, 'onRenderWinkBackInMailbox')); }
public function init() { if (!OW::getRegistry()->get("baseInited")) { $handler = new BASE_CLASS_EventHandler(); $handler->genericInit(); OW::getRegistry()->set("baseInited", true); } $em = OW::getEventManager(); $em->bind(self::EVENT_COLLECT_AUTHORIZATION_ACTIONS, array($this, 'onCollectBaseAuthLabels')); $em->bind(self::EVENT_COLLECT_AUTHORIZATION_ACTIONS, array($this, 'onCollectMailboxAuthLabels')); $em->bind(self::EVENT_COLLECT_AUTHORIZATION_ACTIONS, array($this, 'onCollectPhotoAuthLabels')); $em->bind(self::EVENT_COLLECT_AUTHORIZATION_ACTIONS, array($this, 'onCollectVirtualGiftsAuthLabels')); $em->bind(self::EVENT_COLLECT_AUTHORIZATION_ACTIONS, array($this, 'onCollectHotListAuthLabels')); $em->bind('skandroid.base.ping', array($this, 'onPing')); $em->bind(self::PING_EVENT . '.mailbox_dialog', array($this, 'onMailboxGetChatNewMessages')); $em->bind(self::PING_EVENT . '.mailbox_new_messages', array($this, 'onMailboxGetNewMessages')); $em->bind(OW_EventManager::ON_AFTER_ROUTE, array($this, "onAfterRoute")); // $em->bind('mailbox.renderOembed', array($this, 'onRenderOembedInMailbox')); // $em->bind('wink.renderWink', array($this, 'onRenderWinkInMailbox')); // $em->bind('wink.renderWinkBack', array($this, 'onRenderWinkBackInMailbox')); }