ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
9 {
13  public function matches() : bool
14  {
15  if (!$this->relation->isIgnored()) {
16  return false;
17  }
18 
19  if ($this->relation->isOwnedByActor()) {
20  return false;
21  }
22 
23  return true;
24  }
25 
29  public function __invoke(ilBuddySystemRelationState $state) : bool
30  {
31  if ($state instanceof ilBuddySystemLinkedRelationState) {
32  return true;
33  }
34 
35  return false;
36  }
37 }
Interface ilBuddySystemRelationState.