|
ILIAS
release_4-3 Revision
|
Custom block for polls. More...
Inheritance diagram for ilPollBlock:
Collaboration diagram for ilPollBlock:Public Member Functions | |
| setRefId ($a_id) | |
| Set ref id (needed for poll access) | |
| getPoll () | |
| Get poll object. | |
| hasAnyContent ($a_user_id, $a_ref_id) | |
| Check if user will see any content (vote/result) | |
| mayVote ($a_user_id) | |
| mayNotResultsYet () | |
| maySeeResults ($a_user_id) | |
| getMessage ($a_user_id) | |
Public Member Functions inherited from ilCustomBlock | |
| __construct ($a_id=0) | |
| Constructor. | |
| setId ($a_id) | |
| Set Id. | |
| getId () | |
| Get Id. | |
| setContextObjId ($a_context_obj_id) | |
| Set ContextObjId. | |
| getContextObjId () | |
| Get ContextObjId. | |
| setContextObjType ($a_context_obj_type) | |
| Set ContextObjType. | |
| getContextObjType () | |
| Get ContextObjType. | |
| setContextSubObjId ($a_context_sub_obj_id) | |
| Set ContextSubObjId. | |
| getContextSubObjId () | |
| Get ContextSubObjId. | |
| setContextSubObjType ($a_context_sub_obj_type) | |
| Set ContextSubObjType. | |
| getContextSubObjType () | |
| Get ContextSubObjType. | |
| setType ($a_type) | |
| Set Type. | |
| getType () | |
| Get Type. | |
| setTitle ($a_title) | |
| Set Title. | |
| getTitle () | |
| Get Title. | |
| create () | |
| Create new item. | |
| read () | |
| Read item from database. | |
| update () | |
| Update item in database. | |
| delete () | |
| Delete item from database. | |
| querygetBlocksForContext () | |
| Query getBlocksForContext. | |
| queryBlocksForContext () | |
| Query BlocksForContext. | |
| queryTitleForId () | |
| Query TitleForId. | |
| queryCntBlockForContext () | |
| Query CntBlockForContext. | |
Protected Attributes | |
| $poll | |
| $answers | |
| $visible | |
| $active | |
Protected Attributes inherited from ilCustomBlock | |
| $id | |
| $context_obj_id | |
| $context_obj_type | |
| $context_sub_obj_id | |
| $context_sub_obj_type | |
| $type | |
| $title | |
| ilPollBlock::getMessage | ( | $a_user_id | ) |
Definition at line 136 of file class.ilPollBlock.php.
References $lng, ilDatePresentation\formatDate(), and IL_CAL_UNIX.
Here is the call graph for this function:| ilPollBlock::getPoll | ( | ) |
Get poll object.
Definition at line 36 of file class.ilPollBlock.php.
References $poll.
| ilPollBlock::hasAnyContent | ( | $a_user_id, | |
| $a_ref_id | |||
| ) |
Check if user will see any content (vote/result)
| int | $a_user_id |
Definition at line 47 of file class.ilPollBlock.php.
References ilObjPollAccess\_isActivated(), maySeeResults(), and mayVote().
Here is the call graph for this function:| ilPollBlock::mayNotResultsYet | ( | ) |
Definition at line 97 of file class.ilPollBlock.php.
References ilObjPoll\VIEW_RESULTS_AFTER_PERIOD.
| ilPollBlock::maySeeResults | ( | $a_user_id | ) |
Definition at line 108 of file class.ilPollBlock.php.
References ilObjPoll\VIEW_RESULTS_AFTER_PERIOD, ilObjPoll\VIEW_RESULTS_AFTER_VOTE, ilObjPoll\VIEW_RESULTS_ALWAYS, and ilObjPoll\VIEW_RESULTS_NEVER.
Referenced by hasAnyContent().
Here is the caller graph for this function:| ilPollBlock::mayVote | ( | $a_user_id | ) |
Definition at line 70 of file class.ilPollBlock.php.
Referenced by hasAnyContent().
Here is the caller graph for this function:| ilPollBlock::setRefId | ( | $a_id | ) |
Set ref id (needed for poll access)
| int | $a_id |
Definition at line 24 of file class.ilPollBlock.php.
|
protected |
Definition at line 17 of file class.ilPollBlock.php.
|
protected |
Definition at line 15 of file class.ilPollBlock.php.
|
protected |
Definition at line 14 of file class.ilPollBlock.php.
Referenced by getPoll().
|
protected |
Definition at line 16 of file class.ilPollBlock.php.