ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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
}
ilCustomBlock
This is the super class of all custom blocks.
Definition:
class.ilCustomBlock.php:26
ilLanguage
language handling
Definition:
class.ilLanguage.php:43
ilObjPoll
Class ilObjPoll.
Definition:
class.ilObjPoll.php:34
ilPollBlock
Custom block for polls.
Definition:
class.ilPollBlock.php:27
ilPollBlock\$poll
ilObjPoll $poll
Definition:
class.ilPollBlock.php:29
ilPollBlock\__construct
__construct(int $a_id=0)
Definition:
class.ilPollBlock.php:31
ilPollBlock\getPoll
getPoll()
Definition:
class.ilPollBlock.php:47
ilPollBlock\$lng
ilLanguage $lng
Definition:
class.ilPollBlock.php:28
ilPollBlock\setRefId
setRefId(int $a_id)
Set ref id (needed for poll access)
Definition:
class.ilPollBlock.php:42
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:38
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
Poll
classes
class.ilPollBlock.php
Generated on Sat Oct 18 2025 23:03:33 for ILIAS by
1.9.4 (using
Doxyfile
)