|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
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 = [] |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 22 of file class.ilPollStateInfo.php.
| ilPollStateInfo::areResultsVisible | ( | int | $user_id, |
| ilObjPoll | $poll | ||
| ) |
Definition at line 96 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.
Here is the call graph for this function:| ilPollStateInfo::hasQuestion | ( | ilObjPoll | $poll | ) |
Definition at line 38 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 78 of file class.ilPollStateInfo.php.
References ilObjPoll\hasUserVoted().
Referenced by areResultsVisible().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPollStateInfo::hasVotingPeriodEnded | ( | ilObjPoll | $poll, |
| bool | $default | ||
| ) |
returns default if no voting period is set
Definition at line 65 of file class.ilPollStateInfo.php.
References ilObjPoll\getVotingPeriod(), and ilObjPoll\getVotingPeriodEnd().
Referenced by areResultsVisible(), and willResultsBeShown().
Here is the call graph for this function:
Here is the caller graph for this function:| ilPollStateInfo::hasVotingPeriodNotStarted | ( | ilObjPoll | $poll, |
| bool | $default | ||
| ) |
returns default if no voting period is set
Definition at line 49 of file class.ilPollStateInfo.php.
References ilObjPoll\getVotingPeriod(), and ilObjPoll\getVotingPeriodBegin().
Here is the call graph for this function:| ilPollStateInfo::isOfflineOrUnavailable | ( | ilObjPoll | $poll | ) |
Definition at line 26 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 91 of file class.ilPollStateInfo.php.
References ANONYMOUS_USER_ID.
Referenced by mayUserVote().
Here is the caller graph for this function:| ilPollStateInfo::mayUserVote | ( | int | $user_id | ) |
Definition at line 86 of file class.ilPollStateInfo.php.
References isUserAnonymous().
Here is the call graph for this function:| ilPollStateInfo::willResultsBeShown | ( | ilObjPoll | $poll | ) |
Definition at line 117 of file class.ilPollStateInfo.php.
References ilObjPoll\getViewResults(), hasVotingPeriodEnded(), and ilObjPoll\VIEW_RESULTS_AFTER_PERIOD.
Here is the call graph for this function:
|
protected |
Definition at line 24 of file class.ilPollStateInfo.php.