ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjTalkTemplateAdministrationAccess.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24{
37 public static function _getCommands(): array
38 {
39 $commands = [
40 [
41 'permission' => 'read',
43 'lang_var' => 'show',
44 'default' => true,
45 ],
46 [
47 'permission' => 'write',
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}
static _checkGoto(string $target)
check whether goto script will succeed
Class ilObjectAccess.
global $DIC
Definition: shib_login.php:26