ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 {
18 return 'REQUESTER_';
19 }
20 else
21 {
22 return 'REQUESTEE_';
23 }
24 }
25
29 protected function render()
30 {
31 if($this->relation->isOwnedByRequest())
32 {
33 $this->tpl->setCurrentBlock('requester_container');
34 }
35 else
36 {
37 $this->tpl->setCurrentBlock('requestee_container');
38 }
39 parent::render();
40 $this->tpl->parseCurrentBlock();
41 }
42}
An exception for terminatinating execution or to throw for unit testing.