ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
 Constructor. More...
 
 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

 $manager_service
 
 $user_id
 

Detailed Description

Skill user service.

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

Definition at line 11 of file SkillUserService.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor.

Definition at line 26 of file SkillUserService.php.

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

27  {
28  global $DIC;
29 
30  $this->user_id = $user_id;
31  $this->manager_service = ($manager_service)
33  : $DIC->skills()->internal()->manager();
34  }
global $DIC
Definition: goto.php:24

Member Function Documentation

◆ getProfiles()

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

Definition at line 57 of file SkillUserService.php.

58  {
59  // repo for ilSkillProfile needed
60  }

◆ 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 
)
Parameters
int$a_level_id
int$a_user_id
int$a_trigger_ref_id
int$a_tref_id
bool$a_self_eval
string$a_unique_identifier

Definition at line 44 of file SkillUserService.php.

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

51  {
53  $this->manager_service->getUserLevelManager()->writeSkillLevel($user_id, $a_level_id, $a_trigger_ref_id,
54  $a_tref_id, $a_self_eval, $a_unique_identifier, $a_next_level_fulfilment);
55  }

Field Documentation

◆ $manager_service

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

◆ $user_id

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

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