3 declare(strict_types=1);
29 $before_start =
false;
35 return $offline || $before_start || $after_end;
80 if (!array_key_exists($user_id, $this->cached_user_status)) {
81 $this->cached_user_status[$user_id] = $poll->
hasUserVoted($user_id);
83 return $this->cached_user_status[$user_id];
const VIEW_RESULTS_AFTER_PERIOD
const VIEW_RESULTS_AFTER_VOTE
array $cached_user_status
hasUserVoted(int $a_user_id)
hasQuestion(ilObjPoll $poll)
const VIEW_RESULTS_ALWAYS
isOfflineOrUnavailable(ilObjPoll $poll)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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
areResultsVisible(int $user_id, ilObjPoll $poll)