ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAbstractBuddySystemRelationStateTableFilterMapper Class Reference
+ Inheritance diagram for ilAbstractBuddySystemRelationStateTableFilterMapper:
+ Collaboration diagram for ilAbstractBuddySystemRelationStateTableFilterMapper:

Public Member Functions

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

Protected Attributes

 $lng
 
 $state
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ filterMatchesRelation()

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

Implements ilBuddySystemRelationStateTableFilterMapper.

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

41  : bool
42  {
43  return (
44  strtolower($filter_key) === strtolower(get_class($this->state))
45  );
46  }

◆ 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 34 of file class.ilAbstractBuddySystemRelationStateTableFilterMapper.php.

References ILIAS\Repository\lng().

34  : array
35  {
36  return [
37  get_class($this->state) => $this->lng->txt('buddy_bs_state_' . strtolower($this->state->getName()))
38  ];
39  }
+ Here is the call graph for this function:

Field Documentation

◆ $lng

ilAbstractBuddySystemRelationStateTableFilterMapper::$lng
protected

◆ $state

ilAbstractBuddySystemRelationStateTableFilterMapper::$state
protected

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