ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables 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 26 of file class.SkillUserService.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

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

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

Member Function Documentation

◆ getProfiles()

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

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

61  {
62  // repo for ilSkillProfile needed
63  }

◆ 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 40 of file class.SkillUserService.php.

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

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

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: