ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_id=0) | |
setRefId (int $a_id) | |
Set ref id (needed for poll access) More... | |
getPoll () | |
hasAnyContent (int $a_user_id, int $a_ref_id) | |
Check if user will see any content (vote/result) More... | |
maySeeQuestion ($a_user_id) | |
mayVote ($a_user_id) | |
mayNotResultsYet () | |
maySeeResults (int $a_user_id) | |
getMessage (int $a_user_id) | |
showResultsAs () | |
Show Results as (Barchart or Piechart) More... | |
showComments () | |
Are comments enabled or disabled. More... | |
![]() | |
__construct (int $a_id=0) | |
setId (int $a_id) | |
getId () | |
setContextObjId (int $a_context_obj_id) | |
getContextObjId () | |
setContextObjType (string $a_context_obj_type) | |
getContextObjType () | |
setContextSubObjId (int $a_context_sub_obj_id) | |
getContextSubObjId () | |
setContextSubObjType (string $a_context_sub_obj_type) | |
getContextSubObjType () | |
setType (string $a_type) | |
getType () | |
setTitle (string $a_title) | |
getTitle () | |
create () | |
read () | |
update () | |
delete () | |
queryBlocksForContext (bool $a_include_sub_obj=true) | |
Query BlocksForContext. More... | |
queryCntBlockForContext () | |
Protected Attributes | |
ilLanguage | $lng |
ilObjPoll | $poll |
array | $answers = [] |
bool | $visible = false |
bool | $active = false |
![]() | |
ilDBInterface | $db |
int | $id = 0 |
int | $context_obj_id = 0 |
string | $context_obj_type = "" |
int | $context_sub_obj_id = 0 |
string | $context_sub_obj_type = "" |
string | $type = "" |
string | $title = "" |
Additional Inherited Members | |
![]() | |
static | multiBlockQuery (string $a_context_obj_type, array $a_context_obj_ids) |
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 Custom block for polls
Definition at line 27 of file class.ilPollBlock.php.
ilPollBlock::__construct | ( | int | $a_id = 0 | ) |
Definition at line 35 of file class.ilPollBlock.php.
References $DIC, ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Repository\lng().
ilPollBlock::getMessage | ( | int | $a_user_id | ) |
Definition at line 139 of file class.ilPollBlock.php.
References ilDatePresentation\formatDate(), IL_CAL_UNIX, and ILIAS\Repository\lng().
ilPollBlock::getPoll | ( | ) |
Definition at line 52 of file class.ilPollBlock.php.
References $poll.
ilPollBlock::hasAnyContent | ( | int | $a_user_id, |
int | $a_ref_id | ||
) |
Check if user will see any content (vote/result)
Definition at line 60 of file class.ilPollBlock.php.
References ilObjPollAccess\_isActivated(), maySeeQuestion(), and maySeeResults().
ilPollBlock::mayNotResultsYet | ( | ) |
Definition at line 103 of file class.ilPollBlock.php.
References ilObjPoll\VIEW_RESULTS_AFTER_PERIOD.
ilPollBlock::maySeeQuestion | ( | $a_user_id | ) |
Definition at line 79 of file class.ilPollBlock.php.
Referenced by hasAnyContent(), and mayVote().
ilPollBlock::maySeeResults | ( | int | $a_user_id | ) |
Definition at line 113 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 98 of file class.ilPollBlock.php.
References ANONYMOUS_USER_ID, and maySeeQuestion().
ilPollBlock::setRefId | ( | int | $a_id | ) |
Set ref id (needed for poll access)
Definition at line 46 of file class.ilPollBlock.php.
ilPollBlock::showComments | ( | ) |
Are comments enabled or disabled.
Definition at line 169 of file class.ilPollBlock.php.
ilPollBlock::showResultsAs | ( | ) |
Show Results as (Barchart or Piechart)
Definition at line 161 of file class.ilPollBlock.php.
|
protected |
Definition at line 33 of file class.ilPollBlock.php.
|
protected |
Definition at line 31 of file class.ilPollBlock.php.
|
protected |
Definition at line 29 of file class.ilPollBlock.php.
|
protected |
Definition at line 30 of file class.ilPollBlock.php.
Referenced by getPoll().
|
protected |
Definition at line 32 of file class.ilPollBlock.php.