Beispiel #1
0
 /**
  * Returns class instance
  *
  * @return GHEADER_CLASS_NewsfeedBridge
  */
 public static function getInstance()
 {
     if (!isset(self::$classInstance)) {
         self::$classInstance = new self();
     }
     return self::$classInstance;
 }
Beispiel #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'));
 }
Beispiel #3
0
 protected function __construct()
 {
     parent::__construct();
 }
Beispiel #4
0
 public function onCollectActions(BASE_CLASS_EventCollector $e)
 {
     $sectionLabel = OW::getLanguage()->text('groups', 'email_notification_section_label');
     $sectionIcon = 'ow_ic_files';
     $e->add(array('section' => 'groups', 'action' => self::ACTION_COMMENT, 'sectionIcon' => $sectionIcon, 'sectionLabel' => $sectionLabel, 'description' => OW::getLanguage()->text($this->plugin->getKey(), 'notifications_setting_comment'), 'selected' => true));
     $e->add(array('section' => 'groups', 'action' => self::ACTION_ADD, 'sectionIcon' => $sectionIcon, 'sectionLabel' => $sectionLabel, 'description' => OW::getLanguage()->text($this->plugin->getKey(), 'notifications_setting_add'), 'selected' => true));
     if (GHEADER_CLASS_NewsfeedBridge::getInstance()->isActive()) {
         $e->add(array('section' => 'groups', 'action' => self::ACTION_LIKE, 'sectionIcon' => $sectionIcon, 'sectionLabel' => $sectionLabel, 'description' => OW::getLanguage()->text($this->plugin->getKey(), 'notifications_setting_like'), 'selected' => true));
     }
 }