ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilPollBlock.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
28 {
29  protected ilLanguage $lng;
30  protected ilObjPoll $poll;
31 
32  public function __construct(int $a_id = 0)
33  {
34  global $DIC;
35 
36  parent::__construct($a_id);
37  $this->lng = $DIC->language();
38  }
39 
43  public function setRefId(int $a_id): void
44  {
45  $this->poll = new ilObjPoll($a_id, true);
46  }
47 
48  public function getPoll(): ilObjPoll
49  {
50  return $this->poll;
51  }
52 }
__construct(int $a_id=0)
global $DIC
Definition: feed.php:28
setRefId(int $a_id)
Set ref id (needed for poll access)
__construct(VocabulariesInterface $vocabularies)
ilLanguage $lng
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjPoll.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...