예제 #1
0
 public function init()
 {
     OCSFAVORITES_CLASS_EventHandler::getInstance()->genericInit();
     $em = OW::getEventManager();
     $em->bind(BASE_MCMP_ProfileActionToolbar::EVENT_NAME, array($this, 'onActionToolbarAddFavoriteActionTool'));
     $em->bind('mobile.notifications.on_item_render', array($this, 'setNotificationData'));
 }
예제 #2
0
 /**
  * Returns class instance
  *
  * @return OCSFAVORITES_CLASS_EventHandler
  */
 public static function getInstance()
 {
     if (!isset(self::$classInstance)) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
예제 #3
0
파일: init.php 프로젝트: vazahat/dudex
<?php

/**
 * Copyright (c) 2013, Oxwall CandyStore
 * All rights reserved.
 * ATTENTION: This commercial software is intended for use with Oxwall Free Community Software http://www.oxwall.org/
 * and is licensed under Oxwall Store Commercial License.
 * Full text of this license can be found at http://www.oxwall.org/store/oscl
 */
/**
 * /init.php
 * 
 * @author Oxwall CandyStore <*****@*****.**>
 * @package ow.ow_plugins.ocs_favorites
 * @since 1.5.3
 */
OW::getRouter()->addRoute(new OW_Route('ocsfavorites.admin', '/admin/plugins/ocsfavorites', 'OCSFAVORITES_CTRL_Admin', 'index'));
OW::getRouter()->addRoute(new OW_Route('ocsfavorites.list', '/favorites', 'OCSFAVORITES_CTRL_Favorites', 'mylist'));
OW::getRouter()->addRoute(new OW_Route('ocsfavorites.added_list', '/favorites/added/me', 'OCSFAVORITES_CTRL_Favorites', 'addedList'));
OW::getRouter()->addRoute(new OW_Route('ocsfavorites.mutual_list', '/favorites/mutual', 'OCSFAVORITES_CTRL_Favorites', 'mutualList'));
OW::getRouter()->addRoute(new OW_Route('ocsfavorites.add', '/favorites/ajax/add', 'OCSFAVORITES_CTRL_Ajax', 'add'));
OW::getRouter()->addRoute(new OW_Route('ocsfavorites.remove', '/favorites/ajax/remove', 'OCSFAVORITES_CTRL_Ajax', 'remove'));
OCSFAVORITES_CLASS_EventHandler::getInstance()->init();