ILIAS  release_8 Revision v8.24
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)
 
 optionsForState ()
 
 filterMatchesRelation (string $filter_key, ilBuddySystemRelation $relation)
 

Protected Attributes

 $lng
 
 $state
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ filterMatchesRelation()

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

Implements ilBuddySystemRelationStateTableFilterMapper.

Reimplemented in ilBuddySystemIgnoredRequestRelationStateTableFilterMapper, and ilBuddySystemRequestedRelationStateTableFilterMapper.

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.

Reimplemented in ilBuddySystemRequestedRelationStateTableFilterMapper.

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

34 : array
35 {
36 return [
37 get_class($this->state) => $this->lng->txt('buddy_bs_state_' . strtolower($this->state->getName()))
38 ];
39 }

References ILIAS\Repository\lng().

+ 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: