ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilChatroomGetPermissionsTask Class Reference

Class ilChatroomGetPermissionsTask. More...

+ Inheritance diagram for ilChatroomGetPermissionsTask:
+ Collaboration diagram for ilChatroomGetPermissionsTask:

Public Member Functions

 __construct (ilDBayObjectGUI $gui)
 Constructor.
 executeDefault ($requestedMethod)
 Default execute method.
- Public Member Functions inherited from ilDBayTaskHandler
 execute ($method)
 Executes given $method if existing, otherwise executes executeDefault() method.

Private Attributes

 $gui

Detailed Description

Class ilChatroomGetPermissionsTask.

Returns user permissions

Author
Andreas Korodsz akord.nosp@m.osz@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Version
$Id$

Definition at line 15 of file class.ilChatroomGetPermissionsTask.php.

Constructor & Destructor Documentation

ilChatroomGetPermissionsTask::__construct ( ilDBayObjectGUI  $gui)

Constructor.

Parameters
ilDBayObjectGUI$gui

Reimplemented from ilDBayTaskHandler.

Definition at line 25 of file class.ilChatroomGetPermissionsTask.php.

References $gui.

{
$this->gui = $gui;
}

Member Function Documentation

ilChatroomGetPermissionsTask::executeDefault (   $requestedMethod)

Default execute method.

Parameters
string$requestedMethod

Reimplemented from ilDBayTaskHandler.

Definition at line 35 of file class.ilChatroomGetPermissionsTask.php.

References $ilUser, and exit.

{
global $ilUser;
switch($ilUser->getLogin())
{
case 'root':
$kick = $ban = true;
break;
default:
$kick = $ban = false;
}
$permissions = array(
'kick' => $kick,
'ban' => $ban,
);
echo json_encode($permissions);
}

Field Documentation

ilChatroomGetPermissionsTask::$gui
private

Definition at line 18 of file class.ilChatroomGetPermissionsTask.php.

Referenced by __construct().


The documentation for this class was generated from the following file: