isUserExists() public method

* check this given user is involved in this given $conversation
public isUserExists ( $conversationId, $userId )
$conversationId
$userId
Beispiel #1
0
 /**
  * check the given user exist for the given conversation.
  *
  * @param int $conversationId
  * @param int $userId
  * @return bool
  */
 public function isAuthenticUser($conversationId, $userId)
 {
     if ($conversationId && $userId) {
         return $this->conversation->isUserExists($conversationId, $userId);
     }
     return false;
 }