ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule.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
10
class
ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule
extends
ilBuddySystemRelationStateFilterRule
11
{
15
public
function
matches
()
16
{
17
if
(!$this->relation->isIgnored())
18
{
19
return
false
;
20
}
21
22
if
($this->relation->isOwnedByRequest())
23
{
24
return
false
;
25
}
26
27
return
true
;
28
}
29
34
public
function
__invoke
(
ilBuddySystemRelationState
$state)
35
{
36
if
($state instanceof
ilBuddySystemLinkedRelationState
)
37
{
38
return
true
;
39
}
40
41
return
false
;
42
}
43
}
ilBuddySystemRelationStateFilterRule
Class ilBuddySystemRelation.
Definition:
class.ilBuddySystemRelationStateFilterRule.php:8
ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule
Class ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule.
Definition:
class.ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule.php:10
ilBuddySystemLinkedRelationState
Class ilBuddySystemLinkedState.
Definition:
class.ilBuddySystemLinkedRelationState.php:10
php
ilBuddySystemRelationState
Interface ilBuddySystemRelationState.
Definition:
interface.ilBuddySystemRelationState.php:8
ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule\__invoke
__invoke(ilBuddySystemRelationState $state)
Definition:
class.ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule.php:34
ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule\matches
matches()
Definition:
class.ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule.php:15
Services
Contact
BuddySystem
classes
states
class.ilBuddySystemRelationStateReceiverShouldOnlyBeAbleToApproveIgnoredRequestRule.php
Generated on Fri Jan 24 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)