ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilPollBlock.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
26
class
ilPollBlock
extends
ilCustomBlock
27
{
28
protected
ilLanguage
$lng
;
29
protected
ilObjPoll
$poll
;
30
31
public
function
__construct
(
int
$a_id = 0)
32
{
33
global
$DIC
;
34
35
parent::__construct
($a_id);
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
}
ilLanguage
ilPollBlock\getPoll
getPoll()
Definition:
class.ilPollBlock.php:47
ilPollBlock\__construct
__construct(int $a_id=0)
Definition:
class.ilPollBlock.php:31
ilPollBlock\setRefId
setRefId(int $a_id)
Set ref id (needed for poll access)
Definition:
class.ilPollBlock.php:42
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
$DIC
global $DIC
Definition:
shib_login.php:26
ilPollBlock\$lng
ilLanguage $lng
Definition:
class.ilPollBlock.php:28
ilCustomBlock
This is the super class of all custom blocks.
Definition:
class.ilCustomBlock.php:25
ilObjPoll
Class ilObjPoll.
Definition:
class.ilObjPoll.php:33
ilPollBlock
Custom block for polls.
Definition:
class.ilPollBlock.php:26
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ilPollBlock\$poll
ilObjPoll $poll
Definition:
class.ilPollBlock.php:29
components
ILIAS
Poll
classes
class.ilPollBlock.php
Generated on Sun Aug 31 2025 23:03:30 for ILIAS by
1.8.13 (using
Doxyfile
)