コード例 #1
0
 public function notification_add($event)
 {
     $notifications_data = array(array('item_type' => 'gn36.hookup.notification.type.active_date_set', 'method' => 'notification.method.email'), array('item_type' => 'gn36.hookup.notification.type.active_date_reset', 'method' => 'notification.method.email'), array('item_type' => 'gn36.hookup.notification.type.date_added', 'method' => 'notification.method.email'), array('item_type' => 'gn36.hookup.notification.type.invited', 'method' => 'notification.method.email'));
     foreach ($notifications_data as $subscription) {
         $this->notification_manager->add_subscription($subscription['item_type'], 0, $subscription['method'], $event['user_id']);
     }
 }
コード例 #2
0
 public function notification_add($event)
 {
     if (!$this->config['email_enable']) {
         return;
     }
     $notifications_data = array(array('item_type' => 'gn36.versionchecknotify.notification.type.ext_update', 'method' => 'notification.method.email'), array('item_type' => 'gn36.versionchecknotify.notification.type.phpbb_update', 'method' => 'notification.method.email'));
     foreach ($notifications_data as $subscription) {
         $this->notification_manager->add_subscription($subscription['item_type'], 0, $subscription['method'], $event['user_id']);
     }
 }
コード例 #3
0
ファイル: listener.php プロジェクト: tas2580/wiki
 /**
  * Add notification
  *
  * @param	object	$event	The event object
  * @return	null
  * @access	public
  */
 public function notification_add($event)
 {
     if (!$this->config['email_enable']) {
         return;
     }
     $notifications_data = array(array('item_type' => 'tas2580.wiki.notification.type.articke_edit', 'method' => 'notification.method.email'));
     foreach ($notifications_data as $subscription) {
         $this->notification_manager->add_subscription($subscription['item_type'], 0, $subscription['method'], $event['user_id']);
     }
 }