ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.SkillResource.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27{
28 protected int $skill_id = 0;
29 protected int $tref_id = 0;
30 protected int $level_id = 0;
31 protected int $rep_ref_id = 0;
32 protected bool $imparting = false;
33 protected bool $trigger = false;
34
35 public function __construct(int $skill_id, int $tref_id, int $level_id, int $rep_ref_id, bool $imparting, bool $trigger)
36 {
37 $this->skill_id = $skill_id;
38 $this->tref_id = $tref_id;
39 $this->level_id = $level_id;
40 $this->rep_ref_id = $rep_ref_id;
41 $this->imparting = $imparting;
42 $this->trigger = $trigger;
43 }
44
45 public function getBaseSkillId(): int
46 {
47 return $this->skill_id;
48 }
49
50 public function getTrefId(): int
51 {
52 return $this->tref_id;
53 }
54
58 public function getLevelId(): int
59 {
60 return $this->level_id;
61 }
62
66 public function getRepoRefId(): int
67 {
68 return $this->rep_ref_id;
69 }
70
74 public function getImparting(): bool
75 {
76 return $this->imparting;
77 }
78
82 public function getTrigger(): bool
83 {
84 return $this->trigger;
85 }
86}
getTrigger()
True, if the resource imparts knowledge of the skill level (false otherwise)
getRepoRefId()
Ref id of the repository resource.
getImparting()
True, if the resource triggers the skill level (false otherwise)
__construct(int $skill_id, int $tref_id, int $level_id, int $rep_ref_id, bool $imparting, bool $trigger)