ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilObjTalkTemplateAccess.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
ilObjTalkTemplateAccess
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
48
return
$commands;
49
}
50
51
52
57
public
static
function
_checkGoto
(
string
$target): bool
58
{
59
global
$DIC
;
60
61
$t_arr = explode(
'_'
, $target);
62
if
($t_arr[0] !==
'talt'
|| ((
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
}
ilObjectAccess
ilObjTalkTemplateAccess\_getCommands
static _getCommands()
get commands
Definition:
class.ilObjTalkTemplateAccess.php:37
ilObjTalkTemplateAccess
Definition:
class.ilObjTalkTemplateAccess.php:23
ilObjTalkTemplateAccess\_checkGoto
static _checkGoto(string $target)
Definition:
class.ilObjTalkTemplateAccess.php:57
ControlFlowCommand
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\Forum\Notification\DEFAULT
Definition:
NotificationType.php:27
components
ILIAS
EmployeeTalk
classes
class.ilObjTalkTemplateAccess.php
Generated on Sun Aug 31 2025 23:02:49 for ILIAS by
1.8.13 (using
Doxyfile
)