ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilBuddySystemRelationStateInitiatorShouldNotBeAbleToApproveIgnoredRequestRule.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2015 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Contact/BuddySystem/classes/states/class.ilBuddySystemRelationStateFilterRule.php';
5 
11 {
15  public function matches()
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  }
27 
33  {
34  if ($state instanceof ilBuddySystemLinkedRelationState) {
35  return false;
36  }
37 
38  return true;
39  }
40 }
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition: linkback.php:10
Interface ilBuddySystemRelationState.