ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables 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...
 

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 26 of file class.SkillService.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 36 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.

37  {
38  global $DIC;
39 
40  $this->repository_tree = $DIC->repositoryTree();
41  $skmg_obj = current(\ilObject::_getObjectsByType("skmg"));
42  if ($skmg_obj) {
43  $this->skmg_ref_id = (int) current(\ilObject::_getAllReferences((int) $skmg_obj["obj_id"]));
44  }
45  $this->rbac_system = $DIC->rbac()->system();
46  $this->usr_id = $DIC->user()->getId();
47  }
static _getAllReferences(int $id)
get all reference ids for object ID
static _getObjectsByType(string $obj_type="", int $owner=null)
global $DIC
Definition: feed.php:28
function $this $this $this usr_id
+ Here is the call graph for this function:

Member Function Documentation

◆ profile()

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

External profile service facade.

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

76  : SkillProfileService
77  {
78  return new SkillProfileService($this->internal());
79  }

◆ tree()

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

External tree service facade.

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

68  : SkillTreeService
69  {
70  return new SkillTreeService($this->internal());
71  }

◆ ui()

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

External ui service facade.

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

60  : SkillUIService
61  {
62  return new SkillUIService();
63  }

◆ user()

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

External user service facade.

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

52  : SkillUserService
53  {
54  return new SkillUserService($id);
55  }
$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 33 of file class.SkillService.php.

◆ $repository_tree

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

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

◆ $skmg_ref_id

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

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

◆ $usr_id

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

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

◆ rbac_system

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

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

Referenced by ILIAS\Skill\Service\SkillService\__construct().

◆ repository_tree

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

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

Referenced by ILIAS\Skill\Service\SkillService\__construct().

◆ usr_id

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

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

Referenced by ILIAS\Skill\Service\SkillService\__construct().


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