ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Skill\Service\SkillService Class Reference

Skill service. More...

+ Inheritance diagram for ILIAS\Skill\Service\SkillService:
+ Collaboration diagram for ILIAS\Skill\Service\SkillService:

Public Member Functions

 __construct ()
 
 user (int $id)
 External user service facade. More...
 
 ui ()
 External ui service facade. More...
 
 tree ()
 External tree service facade. More...
 
 profile ()
 External profile service facade. More...
 
 personal ()
 External personal service facade. More...
 
 usage ()
 External usage service facade. More...
 
 internalContainer ()
 Internal service for Skill classes in Container Service. More...
 
 internalSurvey ()
 Internal service for Skill classes in Survey Module. More...
 

Data Fields

function $this $this rbac_system
 
function $this $this $this usr_id
 

Protected Attributes

int $skmg_ref_id = 0
 
ilTree $repository_tree
 
ilRbacSystem $rbac_system
 
int $usr_id = 0
 

Package Attributes

function $this repository_tree
 

Detailed Description

Skill service.

Author
famul.nosp@m.a@le.nosp@m.ifos..nosp@m.de

Definition at line 32 of file class.SkillService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Skill\Service\SkillService::__construct ( )

Definition at line 42 of file class.SkillService.php.

References $DIC, ilObject\_getAllReferences(), ilObject\_getObjectsByType(), ILIAS\Repository\int(), ILIAS\Skill\Service\SkillService\rbac_system, ILIAS\Skill\Service\SkillService\repository_tree, and ILIAS\Skill\Service\SkillService\usr_id.

43  {
44  global $DIC;
45 
46  $this->repository_tree = $DIC->repositoryTree();
47  $skmg_obj = current(\ilObject::_getObjectsByType("skmg"));
48  if ($skmg_obj) {
49  $this->skmg_ref_id = (int) current(\ilObject::_getAllReferences((int) $skmg_obj["obj_id"]));
50  }
51  $this->rbac_system = $DIC->rbac()->system();
52  $this->usr_id = $DIC->user()->getId();
53  }
static _getObjectsByType(string $obj_type="", ?int $owner=null)
static _getAllReferences(int $id)
get all reference ids for object ID
global $DIC
Definition: shib_login.php:22
function $this $this $this usr_id
+ Here is the call graph for this function:

Member Function Documentation

◆ internalContainer()

ILIAS\Skill\Service\SkillService::internalContainer ( )

Internal service for Skill classes in Container Service.

Definition at line 119 of file class.SkillService.php.

119  : Container\Skills\SkillInternalService
120  {
121  return new Container\Skills\SkillInternalService();
122  }

◆ internalSurvey()

ILIAS\Skill\Service\SkillService::internalSurvey ( )

Internal service for Skill classes in Survey Module.

Definition at line 127 of file class.SkillService.php.

127  : Survey\Skills\SkillInternalService
128  {
129  return new Survey\Skills\SkillInternalService();
130  }

◆ personal()

ILIAS\Skill\Service\SkillService::personal ( )

External personal service facade.

Definition at line 90 of file class.SkillService.php.

90  : SkillPersonalService
91  {
92  return new SkillPersonalService($this->internal());
93  }

◆ profile()

ILIAS\Skill\Service\SkillService::profile ( )

External profile service facade.

Definition at line 82 of file class.SkillService.php.

82  : SkillProfileService
83  {
84  return new SkillProfileService($this->internal());
85  }

◆ tree()

ILIAS\Skill\Service\SkillService::tree ( )

External tree service facade.

Definition at line 74 of file class.SkillService.php.

74  : SkillTreeService
75  {
76  return new SkillTreeService($this->internal());
77  }

◆ ui()

ILIAS\Skill\Service\SkillService::ui ( )

External ui service facade.

Definition at line 66 of file class.SkillService.php.

66  : SkillUIService
67  {
68  return new SkillUIService();
69  }

◆ usage()

ILIAS\Skill\Service\SkillService::usage ( )

External usage service facade.

Definition at line 98 of file class.SkillService.php.

98  : SkillUsageService
99  {
100  return new SkillUsageService($this->internal());
101  }

◆ user()

ILIAS\Skill\Service\SkillService::user ( int  $id)

External user service facade.

Definition at line 58 of file class.SkillService.php.

58  : SkillUserService
59  {
60  return new SkillUserService($id);
61  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

Field Documentation

◆ $rbac_system

ilRbacSystem ILIAS\Skill\Service\SkillService::$rbac_system
protected

Definition at line 39 of file class.SkillService.php.

◆ $repository_tree

ilTree ILIAS\Skill\Service\SkillService::$repository_tree
protected

Definition at line 38 of file class.SkillService.php.

◆ $skmg_ref_id

int ILIAS\Skill\Service\SkillService::$skmg_ref_id = 0
protected

Definition at line 37 of file class.SkillService.php.

◆ $usr_id

int ILIAS\Skill\Service\SkillService::$usr_id = 0
protected

Definition at line 40 of file class.SkillService.php.

◆ rbac_system

function $this $this ILIAS\Skill\Service\SkillService::rbac_system

◆ repository_tree

function $this ILIAS\Skill\Service\SkillService::repository_tree
package

◆ usr_id

function $this $this $this ILIAS\Skill\Service\SkillService::usr_id

The documentation for this class was generated from the following file: