ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilAbstractBuddySystemRelationStateTableFilterMapper Class Reference
+ Inheritance diagram for ilAbstractBuddySystemRelationStateTableFilterMapper:
+ Collaboration diagram for ilAbstractBuddySystemRelationStateTableFilterMapper:

Public Member Functions

 __construct (protected ilLanguage $lng, protected ilBuddySystemRelationState $state)
 
 optionsForState ()
 
 filterMatchesRelation (string $filter_key, ilBuddySystemRelation $relation)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilAbstractBuddySystemRelationStateTableFilterMapper::__construct ( protected ilLanguage  $lng,
protected ilBuddySystemRelationState  $state 
)
final

Definition at line 23 of file class.ilAbstractBuddySystemRelationStateTableFilterMapper.php.

24  {
25  }

Member Function Documentation

◆ filterMatchesRelation()

ilAbstractBuddySystemRelationStateTableFilterMapper::filterMatchesRelation ( string  $filter_key,
ilBuddySystemRelation  $relation 
)

Implements ilBuddySystemRelationStateTableFilterMapper.

Definition at line 34 of file class.ilAbstractBuddySystemRelationStateTableFilterMapper.php.

34  : bool
35  {
36  return (
37  strtolower($filter_key) === strtolower($this->state::class)
38  );
39  }

◆ optionsForState()

ilAbstractBuddySystemRelationStateTableFilterMapper::optionsForState ( )
Returns
array<string, string> A map of options for a state, where the value is the translation and the key a unique key describing the state

Implements ilBuddySystemRelationStateTableFilterMapper.

Definition at line 27 of file class.ilAbstractBuddySystemRelationStateTableFilterMapper.php.

References ILIAS\Repository\lng().

27  : array
28  {
29  return [
30  $this->state::class => $this->lng->txt('buddy_bs_state_' . strtolower($this->state->getName()))
31  ];
32  }
+ Here is the call graph for this function:

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