Esempio n. 1
0
 /**
  * Returns an instance of class (singleton pattern implementation).
  *
  * @return GHEADER_CLASS_CommentsBridge
  */
 public static function getInstance()
 {
     if (self::$classInstance === null) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Esempio 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'));
 }