ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilObjEmployeeTalkSeriesAccess.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
24 {
25  private static ?self $instance = null;
26 
27  public static function getInstance(): self
28  {
29  if (is_null(self::$instance)) {
30  self::$instance = new ilObjEmployeeTalkSeriesAccess();
31  }
32 
33  return self::$instance;
34  }
35 
48  public static function _getCommands(): array
49  {
50  $commands = [
51  [
52  'permission' => 'read',
54  'lang_var' => 'show',
55  'default' => true,
56  ]
57  ];
58 
59  return $commands;
60  }
61 
62  public static function _isOffline($a_obj_id): bool
63  {
64  return false;
65  }
66 
72  public static function _checkGoto(string $a_target): bool
73  {
74  global $DIC;
75 
76  $t_arr = explode('_', $a_target);
77  if ($t_arr[0] !== ilObjEmployeeTalkSeries::TYPE || ((int) $t_arr[1]) <= 0) {
78  return false;
79  }
80  if ($DIC->access()->checkAccess('read', '', (int) $t_arr[1])) {
81  return true;
82  }
83 
84  return false;
85  }
86 }
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...