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

Skill user service. More...

+ Collaboration diagram for ILIAS\Skill\Service\SkillUserService:

Public Member Functions

 __construct (int $user_id, ?SkillInternalManagerService $manager_service=null)
 
 writeSkillLevel (int $a_level_id, int $a_trigger_ref_id, int $a_tref_id=0, bool $a_self_eval=false, string $a_unique_identifier="", float $a_next_level_fulfilment=0.0)
 
 getProfiles ()
 

Protected Attributes

SkillInternalManagerService $manager_service
 
int $user_id = 0
 

Detailed Description

Skill user service.

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

Definition at line 27 of file class.SkillUserService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Skill\Service\SkillUserService::__construct ( int  $user_id,
?SkillInternalManagerService  $manager_service = null 
)

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

References $DIC, ILIAS\Skill\Service\SkillUserService\$manager_service, and ILIAS\Skill\Service\SkillUserService\$user_id.

33  {
34  global $DIC;
35 
36  $this->user_id = $user_id;
37  $this->manager_service = ($manager_service)
38  ?: $DIC->skills()->internal()->manager();
39  }
SkillInternalManagerService $manager_service
global $DIC
Definition: shib_login.php:22

Member Function Documentation

◆ getProfiles()

ILIAS\Skill\Service\SkillUserService::getProfiles ( )

Definition at line 61 of file class.SkillUserService.php.

62  {
63  // repo for ilSkillProfile needed
64  }

◆ writeSkillLevel()

ILIAS\Skill\Service\SkillUserService::writeSkillLevel ( int  $a_level_id,
int  $a_trigger_ref_id,
int  $a_tref_id = 0,
bool  $a_self_eval = false,
string  $a_unique_identifier = "",
float  $a_next_level_fulfilment = 0.0 
)

Definition at line 41 of file class.SkillUserService.php.

References ILIAS\Skill\Service\SkillUserService\$user_id.

48  : void {
50  $this->manager_service->getUserLevelManager()->writeSkillLevel(
51  $user_id,
52  $a_level_id,
53  $a_trigger_ref_id,
54  $a_tref_id,
55  $a_self_eval,
56  $a_unique_identifier,
57  $a_next_level_fulfilment
58  );
59  }

Field Documentation

◆ $manager_service

SkillInternalManagerService ILIAS\Skill\Service\SkillUserService::$manager_service
protected

◆ $user_id

int ILIAS\Skill\Service\SkillUserService::$user_id = 0
protected

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