ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ilBuddySystemIgnoredRequestRelationStateTableFilterMapper Class Reference
+ Inheritance diagram for ilBuddySystemIgnoredRequestRelationStateTableFilterMapper:
+ Collaboration diagram for ilBuddySystemIgnoredRequestRelationStateTableFilterMapper:

Public Member Functions

 filterMatchesRelation (string $filter_key, ilBuddySystemRelation $relation)
 
 text (ilBuddySystemRelation $relation)
 Returns the translation of the relation state, similar to the values of optionsForState. More...
 
- Public Member Functions inherited from ilAbstractBuddySystemRelationStateTableFilterMapper
 __construct (protected ilLanguage $lng, protected ilBuddySystemRelationState $state)
 
 optionsForState ()
 
 filterMatchesRelation (string $filter_key, ilBuddySystemRelation $relation)
 
 text (ilBuddySystemRelation $relation)
 Returns the translation of the relation state, similar to the values of optionsForState. More...
 

Detailed Description

Member Function Documentation

◆ filterMatchesRelation()

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

Implements ilBuddySystemRelationStateTableFilterMapper.

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

References ilBuddySystemRelation\isOwnedByActor().

23  : bool
24  {
25  if (ilBuddySystemRequestedRelationState::class . '_a' === $filter_key) {
26  return $relation->isOwnedByActor();
27  } elseif ($relation->isOwnedByActor()) {
28  return false;
29  }
30 
31  return parent::filterMatchesRelation($filter_key, $relation);
32  }
+ Here is the call graph for this function:

◆ text()

ilBuddySystemIgnoredRequestRelationStateTableFilterMapper::text ( ilBuddySystemRelation  $relation)

Returns the translation of the relation state, similar to the values of optionsForState.

Implements ilBuddySystemRelationStateTableFilterMapper.

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

References ilBuddySystemRelation\isOwnedByActor(), ILIAS\Repository\lng(), and ilAbstractBuddySystemRelationStateTableFilterMapper\optionsForState().

+ Here is the call graph for this function:

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