3 declare(strict_types=1);
42 $this->poll_id = $poll->
getId();
46 $id = (
int) ($answer[
'id'] ?? 0);
47 $text = (string) ($answer[
'answer'] ??
'');
48 $answers[
$id] = $text;
59 if (isset($session_last_poll_vote[$this->poll_id])) {
61 unset($session_last_poll_vote[$this->poll_id]);
73 foreach ($this->answers as
$id => $answer) {
80 return (
string) ($this->answers[
$id] ??
'');
85 return count($this->answers);
92 if ($below_max && !$single_answer) {
static get(string $a_var)
__construct(ilObjPoll $poll, string $vote_url, string $vote_cmd)
popLastVoteFromSession()
TODO session handling should get its own class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
static set(string $a_var, $a_val)
Set a value.