ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilBuddySystemSubjectDependentRelationStateButtonRenderer Class Reference

Class ilBuddySystemSubjectDependentRelationStateButtonRenderer. More...

+ Inheritance diagram for ilBuddySystemSubjectDependentRelationStateButtonRenderer:
+ Collaboration diagram for ilBuddySystemSubjectDependentRelationStateButtonRenderer:

Public Member Functions

 getTemplateVariablePrefix ()
 
- Public Member Functions inherited from ilAbstractBuddySystemRelationStateButtonRenderer
 __construct ($user_id, ilBuddySystemRelation $relation)
 
 getHtml ()
 

Protected Member Functions

 render ()
 
- Protected Member Functions inherited from ilAbstractBuddySystemRelationStateButtonRenderer
 getLanguageVariableSuffix ()
 
 render ()
 
 getTemplateVariablePrefix ()
 
 renderStateButton ()
 
 renderTargetState (ilBuddySystemRelationState $target_state)
 

Additional Inherited Members

- Protected Attributes inherited from ilAbstractBuddySystemRelationStateButtonRenderer
 $relation
 
 $user_id
 
 $tpl
 
 $lng
 

Detailed Description

Member Function Documentation

◆ getTemplateVariablePrefix()

ilBuddySystemSubjectDependentRelationStateButtonRenderer::getTemplateVariablePrefix ( )
Returns
string

Definition at line 14 of file class.ilBuddySystemSubjectDependentRelationStateButtonRenderer.php.

15  {
16  if ($this->relation->isOwnedByRequest()) {
17  return 'REQUESTER_';
18  } else {
19  return 'REQUESTEE_';
20  }
21  }

◆ render()

ilBuddySystemSubjectDependentRelationStateButtonRenderer::render ( )
protected

Definition at line 26 of file class.ilBuddySystemSubjectDependentRelationStateButtonRenderer.php.

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  }

The documentation for this class was generated from the following file: