ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilBuddySystemSubjectDependentRelationStateButtonRenderer.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
27 protected function getTemplateVariablePrefix(): string
28 {
29 if ($this->relation->isOwnedByActor()) {
30 return 'REQUESTER_';
31 }
32
33 return 'REQUESTEE_';
34 }
35
36 protected function render(): void
37 {
38 if ($this->relation->isOwnedByActor()) {
39 $this->tpl->setCurrentBlock('requester_container');
40 } else {
41 $this->tpl->setCurrentBlock('requestee_container');
42 }
43 parent::render();
44 $this->tpl->parseCurrentBlock();
45 }
46}