ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilBuddySystemRelationStateInitiatorShouldOnlyBeAbleToCancelRequestRule.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
ilBuddySystemRelationStateInitiatorShouldOnlyBeAbleToCancelRequestRule
extends
ilBuddySystemRelationStateFilterRule
11
{
15
public
function
matches
()
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
}
27
32
public
function
__invoke
(
ilBuddySystemRelationState
$state
)
33
{
34
if
($state instanceof
ilBuddySystemUnlinkedRelationState
) {
35
return
true
;
36
}
37
38
return
false
;
39
}
40
}
ilBuddySystemUnlinkedRelationState
Class ilBuddySystemUnlinkedRelationState.
Definition:
class.ilBuddySystemUnlinkedRelationState.php:10
ilBuddySystemRelationStateFilterRule
Class ilBuddySystemRelation.
Definition:
class.ilBuddySystemRelationStateFilterRule.php:8
ilBuddySystemRelationStateInitiatorShouldOnlyBeAbleToCancelRequestRule\matches
matches()
Definition:
class.ilBuddySystemRelationStateInitiatorShouldOnlyBeAbleToCancelRequestRule.php:15
$state
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
Definition:
linkback.php:10
ilBuddySystemRelationStateInitiatorShouldOnlyBeAbleToCancelRequestRule\__invoke
__invoke(ilBuddySystemRelationState $state)
Definition:
class.ilBuddySystemRelationStateInitiatorShouldOnlyBeAbleToCancelRequestRule.php:32
php
ilBuddySystemRelationStateInitiatorShouldOnlyBeAbleToCancelRequestRule
Class ilBuddySystemRelationStateInitiatorShouldOnlyBeAbleToCancelRequestRule.
Definition:
class.ilBuddySystemRelationStateInitiatorShouldOnlyBeAbleToCancelRequestRule.php:10
ilBuddySystemRelationState
Interface ilBuddySystemRelationState.
Definition:
interface.ilBuddySystemRelationState.php:8
Services
Contact
BuddySystem
classes
states
class.ilBuddySystemRelationStateInitiatorShouldOnlyBeAbleToCancelRequestRule.php
Generated on Thu Jan 30 2025 19:01:55 for ILIAS by
1.8.13 (using
Doxyfile
)