public isParticipatedInPoll ( integer $userId ) : boolean | ||
$userId | integer | User ID |
return | boolean |
public function isParticipatedInPoll($userId)
{
if (!$userId) {
return false;
}
return $this->getPollVotes(['users_id = :id:', 'bind' => ['id' => $userId]])->valid();
}