ILIAS
trunk Revision v11.0_alpha-1862-g4e205cb56d4
|
Public Member Functions | |
isOfflineOrUnavailable (ilObjPoll $poll) | |
hasQuestion (ilObjPoll $poll) | |
hasVotingPeriodNotStarted (ilObjPoll $poll, bool $default) | |
returns default if no voting period is set More... | |
hasVotingPeriodEnded (ilObjPoll $poll, bool $default) | |
returns default if no voting period is set More... | |
hasUserAlreadyVoted (int $user_id, ilObjPoll $poll) | |
mayUserVote (int $user_id) | |
isUserAnonymous (int $user_id) | |
areResultsVisible (int $user_id, ilObjPoll $poll) | |
willResultsBeShown (ilObjPoll $poll) | |
Protected Attributes | |
array | $cached_user_status = [] |
Definition at line 21 of file class.ilPollStateInfo.php.
ilPollStateInfo::areResultsVisible | ( | int | $user_id, |
ilObjPoll | $poll | ||
) |
Definition at line 95 of file class.ilPollStateInfo.php.
References ilObjPoll\getViewResults(), hasUserAlreadyVoted(), hasVotingPeriodEnded(), ilObjPoll\VIEW_RESULTS_AFTER_PERIOD, ilObjPoll\VIEW_RESULTS_AFTER_VOTE, ilObjPoll\VIEW_RESULTS_ALWAYS, and ilObjPoll\VIEW_RESULTS_NEVER.
ilPollStateInfo::hasQuestion | ( | ilObjPoll | $poll | ) |
Definition at line 37 of file class.ilPollStateInfo.php.
References ilObjPoll\getAnswers().
ilPollStateInfo::hasUserAlreadyVoted | ( | int | $user_id, |
ilObjPoll | $poll | ||
) |
Definition at line 77 of file class.ilPollStateInfo.php.
References $user_id, and ilObjPoll\hasUserVoted().
Referenced by areResultsVisible().
ilPollStateInfo::hasVotingPeriodEnded | ( | ilObjPoll | $poll, |
bool | $default | ||
) |
returns default if no voting period is set
Definition at line 64 of file class.ilPollStateInfo.php.
References ilObjPoll\getVotingPeriod(), and ilObjPoll\getVotingPeriodEnd().
Referenced by areResultsVisible(), and willResultsBeShown().
ilPollStateInfo::hasVotingPeriodNotStarted | ( | ilObjPoll | $poll, |
bool | $default | ||
) |
returns default if no voting period is set
Definition at line 48 of file class.ilPollStateInfo.php.
References ilObjPoll\getVotingPeriod(), and ilObjPoll\getVotingPeriodBegin().
ilPollStateInfo::isOfflineOrUnavailable | ( | ilObjPoll | $poll | ) |
Definition at line 25 of file class.ilPollStateInfo.php.
References ilObjPoll\getAccessBegin(), ilObjPoll\getAccessEnd(), ilObjPoll\getAccessType(), ilObject\getOfflineStatus(), and ilObjectActivation\TIMINGS_ACTIVATION.
ilPollStateInfo::isUserAnonymous | ( | int | $user_id | ) |
Definition at line 90 of file class.ilPollStateInfo.php.
References ANONYMOUS_USER_ID.
Referenced by mayUserVote().
ilPollStateInfo::mayUserVote | ( | int | $user_id | ) |
Definition at line 85 of file class.ilPollStateInfo.php.
References isUserAnonymous().
ilPollStateInfo::willResultsBeShown | ( | ilObjPoll | $poll | ) |
Definition at line 116 of file class.ilPollStateInfo.php.
References ilObjPoll\getViewResults(), hasVotingPeriodEnded(), and ilObjPoll\VIEW_RESULTS_AFTER_PERIOD.
|
protected |
Definition at line 23 of file class.ilPollStateInfo.php.