ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRule Class Reference

Class ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRule. More...

+ Inheritance diagram for ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRule:
+ Collaboration diagram for ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRule:

Public Member Functions

 matches ()
 
 __invoke (ilBuddySystemRelationState $state)
 
- Public Member Functions inherited from ilBuddySystemRelationStateFilterRule
 __construct (ilBuddySystemRelation $relation)
 
 getStates ()
 
 matches ()
 
 __invoke (ilBuddySystemRelationState $state)
 

Additional Inherited Members

- Protected Attributes inherited from ilBuddySystemRelationStateFilterRule
 $relation
 

Detailed Description

Member Function Documentation

◆ __invoke()

ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRule::__invoke ( ilBuddySystemRelationState  $state)
Parameters
ilBuddySystemRelationState$state
Returns
boolean

Definition at line 32 of file class.ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRule.php.

33  {
34  if ($state instanceof ilBuddySystemLinkedRelationState) {
35  return false;
36  }
37 
38  return true;
39  }

◆ matches()

ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRule::matches ( )
Returns
bool

Definition at line 15 of file class.ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRule.php.

16  {
17  if (!$this->relation->isIgnored()) {
18  return false;
19  }
20 
21  if (!$this->relation->isOwnedByRequest()) {
22  return false;
23  }
24 
25  return true;
26  }

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