Example #1
0
 /**
  * update last seen laction id
  * @return json response
  * @param  int  $actionId
  */
 public static function updateLastSeenActionId($actionId, $userId = false)
 {
     $rez = array('success' => false);
     if ($userId == false) {
         $userId = User::getId();
     }
     if (is_numeric($actionId)) {
         User::setUserConfigParam('lastSeenActionId', $actionId, $userId);
         DM\Notifications::markAsSeenUpToActionId($actionId, $userId);
         $rez = array('success' => true);
     }
     return $rez;
 }