ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilChatroomTaskHandler.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
7 abstract class ilChatroomTaskHandler
8 {
12  abstract public function __construct(ilChatroomObjectGUI $gui);
13 
18  abstract public function executeDefault($requestedMethod);
19 
26  public function execute($method)
27  {
31  global $lng;
32 
33  $lng->loadLanguageModule('chatroom');
34 
35  require_once 'Modules/Chatroom/classes/class.ilChatroom.php';
36 
37  if(method_exists($this, $method))
38  {
39  return $this->$method();
40  }
41  else
42  {
43  return $this->executeDefault($method);
44  }
45  }
46 }