ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilPollBlock.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 protected ilLanguage $lng;
29 protected ilObjPoll $poll;
30
31 public function __construct(int $a_id = 0)
32 {
33 global $DIC;
34
36 $this->lng = $DIC->language();
37 }
38
42 public function setRefId(int $a_id): void
43 {
44 $this->poll = new ilObjPoll($a_id, true);
45 }
46
47 public function getPoll(): ilObjPoll
48 {
49 return $this->poll;
50 }
51}
This is the super class of all custom blocks.
language handling
Class ilObjPoll.
Custom block for polls.
__construct(int $a_id=0)
ilLanguage $lng
setRefId(int $a_id)
Set ref id (needed for poll access)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26