ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilChatroomGetPermissionsTask.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
15
class
ilChatroomGetPermissionsTask
extends
ilChatroomTaskHandler
16
{
17
18
private
$gui
;
19
25
public
function
__construct
(
ilChatroomObjectGUI
$gui
)
26
{
27
$this->gui =
$gui
;
28
}
29
35
public
function
executeDefault
($requestedMethod)
36
{
37
global
$ilUser
;
38
39
switch
($ilUser->getLogin())
40
{
41
case
'root'
:
42
$kick = $ban =
true
;
43
break
;
44
default
:
45
$kick = $ban =
false
;
46
}
47
48
$permissions = array(
49
'kick'
=> $kick,
50
'ban'
=> $ban,
51
);
52
53
echo json_encode($permissions);
54
exit
;
55
}
56
57
}
58
59
?>
ilChatroomGetPermissionsTask\executeDefault
executeDefault($requestedMethod)
Default execute method.
Definition:
class.ilChatroomGetPermissionsTask.php:35
exit
exit
Definition:
login.php:54
ilChatroomTaskHandler
Definition:
class.ilChatroomTaskHandler.php:7
ilChatroomGetPermissionsTask\$gui
$gui
Definition:
class.ilChatroomGetPermissionsTask.php:18
ilChatroomGetPermissionsTask\__construct
__construct(ilChatroomObjectGUI $gui)
Constructor.
Definition:
class.ilChatroomGetPermissionsTask.php:25
$ilUser
global $ilUser
Definition:
imgupload.php:15
ilChatroomObjectGUI
Definition:
class.ilChatroomObjectGUI.php:11
ilChatroomGetPermissionsTask
Class ilChatroomGetPermissionsTask.
Definition:
class.ilChatroomGetPermissionsTask.php:15
Modules
Chatroom
classes
tasks
class.ilChatroomGetPermissionsTask.php
Generated on Mon Mar 31 2025 19:00:34 for ILIAS by
1.8.13 (using
Doxyfile
)