19 declare(strict_types=1);
28 $before_start =
false;
34 return $offline || $before_start || $after_end;
79 if (!array_key_exists($user_id, $this->cached_user_status)) {
82 return $this->cached_user_status[
$user_id];
array $cached_user_status
const int VIEW_RESULTS_ALWAYS
hasUserVoted(int $a_user_id)
hasQuestion(ilObjPoll $poll)
const int VIEW_RESULTS_AFTER_PERIOD
isOfflineOrUnavailable(ilObjPoll $poll)
willResultsBeShown(ilObjPoll $poll)
hasUserAlreadyVoted(int $user_id, ilObjPoll $poll)
isUserAnonymous(int $user_id)
mayUserVote(int $user_id)
hasVotingPeriodEnded(ilObjPoll $poll, bool $default)
returns default if no voting period is set
hasVotingPeriodNotStarted(ilObjPoll $poll, bool $default)
returns default if no voting period is set
const int VIEW_RESULTS_AFTER_VOTE
areResultsVisible(int $user_id, ilObjPoll $poll)
const int VIEW_RESULTS_NEVER