ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Custom block for polls. More...
Public Member Functions | |
setRefId ($a_id) | |
Set ref id (needed for poll access) More... | |
getPoll () | |
Get poll object. More... | |
hasAnyContent ($a_user_id, $a_ref_id) | |
Check if user will see any content (vote/result) More... | |
mayVote ($a_user_id) | |
mayNotResultsYet () | |
maySeeResults ($a_user_id) | |
getMessage ($a_user_id) | |
showResultsAs () | |
Show Results as (Barchart or Piechart) More... | |
showComments () | |
Are Comments enabled or disabled. More... | |
Public Member Functions inherited from ilCustomBlock | |
__construct ($a_id=0) | |
Constructor. More... | |
setId ($a_id) | |
Set Id. More... | |
getId () | |
Get Id. More... | |
setContextObjId ($a_context_obj_id) | |
Set ContextObjId. More... | |
getContextObjId () | |
Get ContextObjId. More... | |
setContextObjType ($a_context_obj_type) | |
Set ContextObjType. More... | |
getContextObjType () | |
Get ContextObjType. More... | |
setContextSubObjId ($a_context_sub_obj_id) | |
Set ContextSubObjId. More... | |
getContextSubObjId () | |
Get ContextSubObjId. More... | |
setContextSubObjType ($a_context_sub_obj_type) | |
Set ContextSubObjType. More... | |
getContextSubObjType () | |
Get ContextSubObjType. More... | |
setType ($a_type) | |
Set Type. More... | |
getType () | |
Get Type. More... | |
setTitle ($a_title) | |
Set Title. More... | |
getTitle () | |
Get Title. More... | |
create () | |
Create new item. More... | |
read () | |
Read item from database. More... | |
update () | |
Update item in database. More... | |
delete () | |
Delete item from database. More... | |
querygetBlocksForContext () | |
Query getBlocksForContext. More... | |
queryBlocksForContext ($a_include_sub_obj=true) | |
Query BlocksForContext. More... | |
queryTitleForId () | |
Query TitleForId. More... | |
queryCntBlockForContext () | |
Query CntBlockForContext. More... | |
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 | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilCustomBlock | |
static | multiBlockQuery ($a_context_obj_type, array $a_context_obj_ids) |
ilPollBlock::getMessage | ( | $a_user_id | ) |
Definition at line 136 of file class.ilPollBlock.php.
References $lng, ilDatePresentation\formatDate(), IL_CAL_UNIX, and time.
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().
ilPollBlock::mayNotResultsYet | ( | ) |
Definition at line 97 of file class.ilPollBlock.php.
References time, and 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().
ilPollBlock::mayVote | ( | $a_user_id | ) |
Definition at line 70 of file class.ilPollBlock.php.
References time.
Referenced by hasAnyContent().
ilPollBlock::setRefId | ( | $a_id | ) |
Set ref id (needed for poll access)
int | $a_id |
Definition at line 24 of file class.ilPollBlock.php.
ilPollBlock::showComments | ( | ) |
ilPollBlock::showResultsAs | ( | ) |
Show Results as (Barchart or Piechart)
Definition at line 164 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.