예제 #1
0
 /**
  * @PostPersist
  */
 public function created()
 {
     User::incrementCounter('journals', $this->user_id);
     \FA\Legacy\Notifications::dispatch('upload', $this->id);
 }
예제 #2
0
파일: Shout.php 프로젝트: einstein95/FAOpen
 /**
  * @PostPersist
  */
 public function created()
 {
     \FA\Legacy\Notifications::dispatch('shout', $this->id, $this->recipient->id, $this->sender->id);
 }
예제 #3
0
파일: Note.php 프로젝트: einstein95/FAOpen
 public function setIsRead($new_value)
 {
     if ((bool) $new_value != (bool) $this->is_read) {
         if ($new_value) {
             Notifications::purge('note', $this->id, $this->recipient_id);
         } else {
             Notifications::dispatch('note', $this->id, $this->recipient_id);
         }
     }
     $this->is_read = (bool) $new_value;
 }
예제 #4
0
 /**
  * @PostPersist
  */
 public function created()
 {
     User::incrementCounter('comments_sent', $this->user_id);
     User::incrementCounter('comments_received', $this->upload->user_id);
     \FA\Legacy\Notifications::dispatch('upload_comment', $this->id, $this->upload->user_id, $this->upload->id);
 }
예제 #5
0
파일: Watch.php 프로젝트: einstein95/FAOpen
 /**
  * @PostPersist
  */
 public function created()
 {
     \FA\Legacy\Notifications::dispatch('watch', $this->id, $this->target->id, $this->user->id);
 }
예제 #6
0
 /**
  * @PostPersist
  */
 public function created()
 {
     if ($this->user_id !== $this->ticket->user_id) {
         \FA\Legacy\Notifications::dispatch('ticket', $this->ticket->id, $this->ticket->user_id);
     }
 }
예제 #7
0
 /**
  * @PostPersist
  */
 public function created()
 {
     \FA\Legacy\Notifications::dispatch('journal_comment', $this->id, $this->journal->user_id);
 }
예제 #8
0
 /**
  * @PostPersist
  */
 public function created()
 {
     User::incrementCounter('favorites', $this->user->id);
     \FA\Legacy\Notifications::dispatch('favorite', $this->id, $this->user->id, $this->upload->id);
 }