ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilBuddySystemSubjectDependentRelationStateButtonRenderer.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Services/Contact/BuddySystem/classes/states/renderer/class.ilAbstractBuddySystemRelationStateButtonRenderer.php';
10{
14 public function getTemplateVariablePrefix()
15 {
16 if ($this->relation->isOwnedByRequest()) {
17 return 'REQUESTER_';
18 } else {
19 return 'REQUESTEE_';
20 }
21 }
22
26 protected function render()
27 {
28 if ($this->relation->isOwnedByRequest()) {
29 $this->tpl->setCurrentBlock('requester_container');
30 } else {
31 $this->tpl->setCurrentBlock('requestee_container');
32 }
33 parent::render();
34 $this->tpl->parseCurrentBlock();
35 }
36}
An exception for terminatinating execution or to throw for unit testing.