ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilObjTalkTemplateAccess.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
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}
Class ilObjectAccess.
global $DIC
Definition: shib_login.php:26