ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }