ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilAbstractBuddySystemRelationState.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/class.ilBuddySystemRelation.php';
5 require_once 'Services/Contact/BuddySystem/exceptions/class.ilBuddySystemRelationStateException.php';
6 require_once 'Services/Contact/BuddySystem/interfaces/interface.ilBuddySystemRelationState.php';
7 
13 {
17  public function isInitial()
18  {
19  return false;
20  }
21 
26  public function request(ilBuddySystemRelation $relation)
27  {
28  throw new ilBuddySystemRelationStateException('Invalid state transition: ' . __FUNCTION__);
29  }
30 
35  public function ignore(ilBuddySystemRelation $relation)
36  {
37  throw new ilBuddySystemRelationStateException('Invalid state transition: ' . __FUNCTION__);
38  }
39 
44  public function link(ilBuddySystemRelation $relation)
45  {
46  throw new ilBuddySystemRelationStateException('Invalid state transition: ' . __FUNCTION__);
47  }
48 
53  public function unlink(ilBuddySystemRelation $relation)
54  {
55  throw new ilBuddySystemRelationStateException('Invalid state transition: ' . __FUNCTION__);
56  }
57 }
Class ilAbstractBuddySystemRelationState.
Class ilBuddySystemRelation.
Interface ilBuddySystemRelationState.