19 declare(strict_types=1);
    44         $this->
lng = $DIC->language();
    45         $this->
ctrl = $DIC->ctrl();
    46         $this->
user = $DIC->user();
    47         $this->
access = $DIC->access();
    48         $this->ui_factory = $DIC->ui()->factory();
    49         $this->ui_renderer = $DIC->ui()->renderer();
    53         $this->
lng->loadLanguageModule(
"poll");
    67         return self::$block_type;
    77         return "ilobjpollgui";
    83         $this->poll_block = $a_block;
    88         $next_class = $this->
ctrl->getNextClass();
    89         $cmd = $this->
ctrl->getCmd(
"getHTML");
    91         switch ($next_class) {
    98     public function fillRow(array $a_set): void
   100         if ($this->poll_block->getPoll()->getShowComments()) {
   107             $this->
user->getId(),
   108             $this->poll_block->getPoll(),
   115         $this->poll_block->setRefId($this->
getRefId());
   116         $may_write = $this->
access->checkAccess(
"write", 
"", $this->
getRefId());
   118         $poll_obj = $this->poll_block->getPoll();
   119         $this->
setTitle($poll_obj->getTitle());
   122         $this->
ctrl->setParameterByClass(
   129             !$this->state->isOfflineOrUnavailable($this->poll_block->getPoll()) &&
   130             !$this->
user->isAnonymous()
   135                     $this->
ctrl->getLinkTargetByClass(
   139                     $this->
lng->txt(
"poll_notification_unsubscribe")
   143                     $this->
ctrl->getLinkTargetByClass(
   147                     $this->
lng->txt(
"poll_notification_subscribe")
   155                 $this->
ctrl->getLinkTargetByClass(
   159                 $this->
lng->txt(
"poll_edit_question")
   162                 $this->
ctrl->getLinkTargetByClass(
   166                 $this->
lng->txt(
"settings")
   169                 $this->
ctrl->getLinkTargetByClass(
   173                 $this->
lng->txt(
"poll_result")
   179         return parent::getHTML();
   185             $this->poll_block->getPoll(),
   190             $this->poll_block->getPoll(),
   208         if (!self::$js_init) {
   209             $this->main_tpl->addJavaScript(
"Modules/Poll/js/ilPoll.js");
   210             self::$js_init = 
true;
   216         return $this->
ctrl->getLinkTarget(
   218             "getNumberOfCommentsForRedraw",
   226         $this->
ctrl->setParameterByClass(
   231         $url = $this->
ctrl->getLinkTargetByClass(
   237         return $url .= 
"#poll" . $this->poll_block->getPoll()->getID();
   242         $this->comments->getNumberOfCommentsForRedraw();
   254         return $this->tpl->get();
 
setBlock(ilPollBlock $a_block)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static string $block_type
 
setBlockId(string $a_block_id="0")
 
getRepositoryObjectGUIName()
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setRowTemplate(string $a_rowtemplatename, string $a_rowtemplatedir="")
Set Row Template Name. 
 
addBlockCommand(string $a_href, string $a_text, string $a_onclick="", RoundTrip $modal=null)
 
ilPollCommentsHandler $comments
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
BlockGUI class for polls. 
 
setTitle(string $a_title)
 
static hasNotification(int $type, int $user_id, int $id)
Check notification status for object and user. 
 
getNumberOfCommentsForRedraw()
 
This class represents a block method of a block. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...