ILIAS  release_8 Revision v8.23
RBACServices.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4 
5 namespace ILIAS\DI;
6 
7 /******************************************************************************
8  *
9  * This file is part of ILIAS, a powerful learning management system.
10  *
11  * ILIAS is licensed with the GPL-3.0, you should have received a copy
12  * of said license along with the source code.
13  *
14  * If this is not the case or you just want to try ILIAS, you'll find
15  * us at:
16  * https://www.ilias.de
17  * https://github.com/ILIAS-eLearning
18  *
19  *****************************************************************************/
24 {
25  protected Container $container;
26 
27  public function __construct(Container $container)
28  {
29  $this->container = $container;
30  }
31 
35  public function system(): \ilRbacSystem
36  {
37  return $this->container["rbacsystem"];
38  }
39 
43  public function admin(): \ilRbacAdmin
44  {
45  return $this->container["rbacadmin"];
46  }
47 
51  public function review(): \ilRbacReview
52  {
53  return $this->container["rbacreview"];
54  }
55 }
__construct(Container $container)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Container.php:19
system()
Get the interface to the RBAC system.
review()
Get the interface to query the RBAC system.
Provides fluid interface to RBAC services.
Class ilRbacAdmin Core functions for role based access control.
admin()
Get the interface to insert relations into the RBAC system.