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

Class ilBuddySystemRelationStateReceiverShouldNotBeAbleToCancelRequestRule. More...

+ Inheritance diagram for ilBuddySystemRelationStateReceiverShouldNotBeAbleToCancelRequestRule:
+ Collaboration diagram for ilBuddySystemRelationStateReceiverShouldNotBeAbleToCancelRequestRule:

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()

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

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

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

◆ matches()

ilBuddySystemRelationStateReceiverShouldNotBeAbleToCancelRequestRule::matches ( )
Returns
bool

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

16  {
17  if (!$this->relation->isRequested()) {
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: