ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilObjTalkTemplateAdministrationAccess.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\EmployeeTalk\UI\ControlFlowCommand
;
22
23
final
class
ilObjTalkTemplateAdministrationAccess
extends
ilObjectAccess
24
{
37
public
static
function
_getCommands
(): array
38
{
39
$commands = [
40
[
41
'permission'
=>
'read'
,
42
'cmd'
=>
ControlFlowCommand::DEFAULT
,
43
'lang_var'
=>
'show'
,
44
'default'
=>
true
,
45
],
46
[
47
'permission'
=>
'write'
,
48
'cmd'
=>
ControlFlowCommand::DEFAULT
,
49
'lang_var'
=>
'edit'
,
50
'default'
=>
false
,
51
]
52
];
53
54
return
$commands;
55
}
56
57
public
static
function
_checkGoto
(
string
$target): bool
58
{
59
global
$DIC
;
60
61
$t_arr = explode(
'_'
, $target);
62
if
($t_arr[0] !==
'tala'
|| ((
int
) $t_arr[1]) <= 0) {
63
return
false
;
64
}
65
if
($DIC->access()->checkAccess(
'read'
,
''
, (
int
) $t_arr[1])) {
66
return
true
;
67
}
68
69
return
false
;
70
}
71
}
ilObjTalkTemplateAdministrationAccess\_checkGoto
static _checkGoto(string $target)
Definition:
class.ilObjTalkTemplateAdministrationAccess.php:57
ilObjectAccess
ilObjTalkTemplateAdministrationAccess\_getCommands
static _getCommands()
get commands
Definition:
class.ilObjTalkTemplateAdministrationAccess.php:37
ilObjTalkTemplateAdministrationAccess
Definition:
class.ilObjTalkTemplateAdministrationAccess.php:23
ControlFlowCommand
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\Forum\Notification\DEFAULT
Definition:
NotificationType.php:27
components
ILIAS
EmployeeTalk
classes
class.ilObjTalkTemplateAdministrationAccess.php
Generated on Sun Aug 31 2025 23:02:49 for ILIAS by
1.8.13 (using
Doxyfile
)