ILIAS  Release_5_0_x_branch Revision 61816
 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 (ilChatroomObjectGUI $gui)
 Constructor.
 executeDefault ($requestedMethod)
 Default execute 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 ( ilChatroomObjectGUI  $gui)

Constructor.

Parameters
ilChatroomObjectGUI$gui

Reimplemented from ilChatroomTaskHandler.

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 ilChatroomTaskHandler.

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: