40        return $this->dic()->ctrl();
 
   43    public function txt(
string $variable): string
 
   45        return $this->
lng()->txt($variable);
 
   51        return $this->dic()->ui()->mainTemplate();
 
   56        return $this->dic()->language();
 
   61        return $this->dic()->tabs();
 
   64    protected function ui(): \
ILIAS\
DI\UIServices
 
   66        return $this->dic()->ui();
 
   71        return $this->dic()->user();
 
   74    protected function http(): \
ILIAS\HTTP\Services
 
   76        return $this->dic()->http();
 
   81        return $this->dic()->access();
 
   86        return $this->dic()->toolbar();
 
   91        return $this->dic()->database();
 
   97    public function checkPermissionAndFail($a_perm)
 
   99        if (!$this->checkPermissionBoolAndReturn($a_perm)) {
 
  100            throw new \ilObjectException($this->
lng()->txt(
"permission_denied"));
 
  108    public function checkPermissionBoolAndReturn($a_perm)
 
  110        return (
bool) $this->
access()->checkAccess($a_perm, 
'', $this->
http()->request()->getQueryParams()[
'ref_id']);
 
Provides an interface to the ILIAS HTTP services.
 
Class ilCtrl provides processing control methods.
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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...
 
Class ChatMainBarProvider \MainMenu\Provider.