ILIAS
Release_5_0_x_branch Revision 61816
|
Custom block for polls. More...
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) | |
showResultsAs () | |
Show Results as (Barchart or Piechart) | |
showComments () | |
Are Comments enabled or disabled. | |
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 ($a_include_sub_obj=true) | |
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 |
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(), and IL_CAL_UNIX.
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 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.
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 | ( | ) |
Are Comments enabled or disabled.
Definition at line 173 of file class.ilPollBlock.php.
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.