ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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)
setRefId(int $a_id)
Set ref id (needed for poll access)
global $DIC
Definition: shib_login.php:25
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...
__construct(Container $dic, ilPlugin $plugin)