Ejemplo n.º 1
0
 /**
  * Returns class instance
  *
  * @return GHEADER_CLASS_NotificationsBridge
  */
 public static function getInstance()
 {
     if (!isset(self::$classInstance)) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Ejemplo n.º 2
0
 public function fullInit()
 {
     //FULL INIT
     $this->genericInit();
     //OVerwrite
     require_once $this->getPlugin()->getRootDir() . 'overwrite' . DS . 'components' . DS . 'brief_info.php';
     // Bridges
     GHEADER_CLASS_PhotoBridge::getInstance()->init();
     GHEADER_CLASS_NewsfeedBridge::getInstance()->init();
     GHEADER_CLASS_NotificationsBridge::getInstance()->init();
     GHEADER_CLASS_CommentsBridge::getInstance()->init();
     GHEADER_CLASS_CreditsBridge::getInstance()->init();
     OW::getEventManager()->bind('admin.add_auth_labels', array($this, 'onAddAuthLabels'));
 }