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