ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Custom block for polls. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
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 | |
$lng | |
$poll | |
$answers | |
$visible | |
$active | |
Protected Attributes inherited from ilCustomBlock | |
$db | |
$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::__construct | ( | $a_id = 0 | ) |
ilPollBlock::getMessage | ( | $a_user_id | ) |
Definition at line 142 of file class.ilPollBlock.php.
References $lng, ilDatePresentation\formatDate(), and IL_CAL_UNIX.
ilPollBlock::getPoll | ( | ) |
Get poll object.
Definition at line 53 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 64 of file class.ilPollBlock.php.
References ilObjPollAccess\_isActivated(), maySeeResults(), and mayVote().
ilPollBlock::mayNotResultsYet | ( | ) |
Definition at line 107 of file class.ilPollBlock.php.
References ilObjPoll\VIEW_RESULTS_AFTER_PERIOD.
ilPollBlock::maySeeResults | ( | $a_user_id | ) |
Definition at line 117 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 84 of file class.ilPollBlock.php.
Referenced by hasAnyContent().
ilPollBlock::setRefId | ( | $a_id | ) |
Set ref id (needed for poll access)
int | $a_id |
Definition at line 41 of file class.ilPollBlock.php.
ilPollBlock::showComments | ( | ) |
ilPollBlock::showResultsAs | ( | ) |
Show Results as (Barchart or Piechart)
Definition at line 166 of file class.ilPollBlock.php.
|
protected |
Definition at line 34 of file class.ilPollBlock.php.
|
protected |
Definition at line 32 of file class.ilPollBlock.php.
|
protected |
Definition at line 17 of file class.ilPollBlock.php.
Referenced by getMessage().
|
protected |
Definition at line 31 of file class.ilPollBlock.php.
Referenced by getPoll().
|
protected |
Definition at line 33 of file class.ilPollBlock.php.