41 return $this->dic()->ctrl();
44 public function txt(
string $variable): string
46 return $this->
lng()->txt($variable);
52 return $this->dic()->ui()->mainTemplate();
57 return $this->dic()->language();
62 return $this->dic()->tabs();
65 protected function ui(): \
ILIAS\
DI\UIServices
67 return $this->dic()->ui();
72 return $this->dic()->user();
77 return $this->dic()->http();
82 return $this->dic()->access();
87 return $this->dic()->toolbar();
92 return $this->dic()->database();
98 public function checkPermissionAndFail($a_perm)
100 if (!$this->checkPermissionBoolAndReturn($a_perm)) {
101 throw new \ilObjectException($this->
lng()->txt(
"permission_denied"));
109 public function checkPermissionBoolAndReturn($a_perm)
111 return (
bool) $this->
access()->checkAccess($a_perm,
'', $this->
http()->request()->getQueryParams()[
'ref_id']);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer Contains several chained tasks and infos about them.
static http()
Fetches the global http state from ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...