Esempio n. 1
0
 public function notifyEveryone()
 {
     $rev = $this->getArticleComment()->mLastRevision;
     if (empty($rev)) {
         return true;
     }
     $notif = WallNotificationEntity::createFromRev($rev);
     /*
      * experimental notfieverone
      */
     $wne = new WallNotificationsEveryone();
     $wne->addNotificationToQueue($notif);
 }
Esempio n. 2
0
 public function sendNotification($revOldId, $rcType = RC_NEW, $useMasterDB = false)
 {
     $app = F::App();
     $rev = Revision::newFromId($revOldId);
     $notif = WallNotificationEntity::createFromRev($rev, $useMasterDB);
     $wh = new WallHistory($app->wg->CityId);
     $wh->add($rcType == RC_NEW ? WH_NEW : WH_EDIT, $notif, $app->wg->User);
     if ($rcType == RC_NEW) {
         $wn = new WallNotifications();
         $wn->addNotification($notif);
     }
 }