ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilBuddySystemRelationStateFilterRule Class Reference

Class ilBuddySystemRelation. More...

+ Inheritance diagram for ilBuddySystemRelationStateFilterRule:
+ Collaboration diagram for ilBuddySystemRelationStateFilterRule:

Public Member Functions

 __construct (protected ilBuddySystemRelation $relation)
 
 getStates ()
 
 matches ()
 
 __invoke (ilBuddySystemRelationState $state)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilBuddySystemRelationStateFilterRule::__construct ( protected ilBuddySystemRelation  $relation)

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

28  {
29  }

Member Function Documentation

◆ __invoke()

ilBuddySystemRelationStateFilterRule::__invoke ( ilBuddySystemRelationState  $state)
abstract

Referenced by getStates().

+ Here is the caller graph for this function:

◆ getStates()

ilBuddySystemRelationStateFilterRule::getStates ( )

Definition at line 31 of file class.ilBuddySystemRelationStateFilterRule.php.

References __invoke(), ilBuddySystemCollection\filter(), and matches().

32  {
33  return $this->relation->getState()->getPossibleTargetStates()->filter($this);
34  }
filter(callable $callable)
Returns all the elements of this collection that satisfy the predicate $callable. ...
Class ilBuddySystemRelationStateCollection A collection of relation states.
+ Here is the call graph for this function:

◆ matches()

ilBuddySystemRelationStateFilterRule::matches ( )
abstract

Referenced by getStates().

+ Here is the caller graph for this function:

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