ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilObjEmployeeTalkSeriesAccess.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
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',
53  'cmd' => ControlFlowCommand::DEFAULT,
54  'lang_var' => 'show',
55  'default' => true,
56  ]
57  ];
58 
59  return $commands;
60  }
61 
62  public static function _isOffline($obj_id): bool
63  {
64  return false;
65  }
66 
67  public static function _checkGoto(string $target): bool
68  {
69  global $DIC;
70 
71  $t_arr = explode('_', $target);
72  if ($t_arr[0] !== ilObjEmployeeTalkSeries::TYPE || ((int) $t_arr[1]) <= 0) {
73  return false;
74  }
75  if ($DIC->access()->checkAccess('read', '', (int) $t_arr[1])) {
76  return true;
77  }
78 
79  return false;
80  }
81 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
global $DIC
Definition: shib_login.php:22