ILIAS  release_8 Revision v8.24
class.ilObjTalkTemplateAdministrationAccess.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
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
58
64 public static function _checkGoto(string $a_target): bool
65 {
66 global $DIC;
67
68 $t_arr = explode('_', $a_target);
69 if ($t_arr[0] !== 'tala' || ((int) $t_arr[1]) <= 0) {
70 return false;
71 }
72 if ($DIC->access()->checkAccess('read', '', (int) $t_arr[1])) {
73 return true;
74 }
75
76 return false;
77 }
78}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28