ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilBuddySystemSubjectDependentRelationStateButtonRenderer.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
13 public function getTemplateVariablePrefix() : string
14 {
15 if ($this->relation->isOwnedByActor()) {
16 return 'REQUESTER_';
17 }
18
19 return 'REQUESTEE_';
20 }
21
25 protected function render() : void
26 {
27 if ($this->relation->isOwnedByActor()) {
28 $this->tpl->setCurrentBlock('requester_container');
29 } else {
30 $this->tpl->setCurrentBlock('requestee_container');
31 }
32 parent::render();
33 $this->tpl->parseCurrentBlock();
34 }
35}
An exception for terminatinating execution or to throw for unit testing.