ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAbstractBuddySystemRelationStateTableFilterMapper Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

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

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ filterMatchesRelation()

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

Implements ilBuddySystemRelationStateTableFilterMapper.

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

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

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

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

Field Documentation

◆ $lng

ilAbstractBuddySystemRelationStateTableFilterMapper::$lng
protected

◆ $state

ilAbstractBuddySystemRelationStateTableFilterMapper::$state
protected

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