removeNotification() public static method

removeNotification
public static removeNotification ( string $type, integer $targetId, integer $userId ) : boolean
$type string
$targetId integer
$userId integer
return boolean
Example #1
0
 /**
  * doSave
  *
  * @param Data $data
  *
  * @return  void
  *
  * @throws ValidFailException
  */
 protected function doSave(Data $data)
 {
     $user = User::get();
     if (!$user->isMember()) {
         throw new ValidFailException('User not login');
     }
     Notification::removeNotification($data->type, $data->target_id, $user->id);
 }