|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Collaboration diagram for ilPollStateInfo: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 $user_id, ilObjPoll\getViewResults(), ilObjPoll\VIEW_RESULTS_AFTER_PERIOD, ilObjPoll\VIEW_RESULTS_AFTER_VOTE, ilObjPoll\VIEW_RESULTS_ALWAYS, and ilObjPoll\VIEW_RESULTS_NEVER.
Here is the call graph for this function:| ilPollStateInfo::hasQuestion | ( | ilObjPoll | $poll | ) |
Definition at line 37 of file class.ilPollStateInfo.php.
References ilObjPoll\getAnswers().
Here is the call graph for this function:| ilPollStateInfo::hasUserAlreadyVoted | ( | int | $user_id, |
| ilObjPoll | $poll | ||
| ) |
Definition at line 77 of file class.ilPollStateInfo.php.
References $user_id, and ilObjPoll\hasUserVoted().
Here is the call graph for this function:| ilPollStateInfo::hasVotingPeriodEnded | ( | ilObjPoll | $poll, |
| bool | $default | ||
| ) |
returns default if no voting period is set
Definition at line 64 of file class.ilPollStateInfo.php.
| ilPollStateInfo::hasVotingPeriodNotStarted | ( | ilObjPoll | $poll, |
| bool | $default | ||
| ) |
returns default if no voting period is set
Definition at line 48 of file class.ilPollStateInfo.php.
| 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.
Here is the call graph for this function:| ilPollStateInfo::isUserAnonymous | ( | int | $user_id | ) |
Definition at line 90 of file class.ilPollStateInfo.php.
References $user_id, and ANONYMOUS_USER_ID.
| ilPollStateInfo::mayUserVote | ( | int | $user_id | ) |
Definition at line 85 of file class.ilPollStateInfo.php.
References $user_id.
| ilPollStateInfo::willResultsBeShown | ( | ilObjPoll | $poll | ) |
Definition at line 116 of file class.ilPollStateInfo.php.
References ilObjPoll\getViewResults(), and ilObjPoll\VIEW_RESULTS_AFTER_PERIOD.
Here is the call graph for this function:
|
protected |
Definition at line 23 of file class.ilPollStateInfo.php.