ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.SkillResource.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
23 
28 {
29  protected int $skill_id = 0;
30  protected int $tref_id = 0;
31  protected int $level_id = 0;
32  protected int $rep_ref_id = 0;
33  protected bool $imparting = false;
34  protected bool $trigger = false;
35 
36  public function __construct(int $skill_id, int $tref_id, int $level_id, int $rep_ref_id, bool $imparting, bool $trigger)
37  {
38  $this->skill_id = $skill_id;
39  $this->tref_id = $tref_id;
40  $this->level_id = $level_id;
41  $this->rep_ref_id = $rep_ref_id;
42  $this->imparting = $imparting;
43  $this->trigger = $trigger;
44  }
45 
46  public function getBaseSkillId(): int
47  {
48  return $this->skill_id;
49  }
50 
51  public function getTrefId(): int
52  {
53  return $this->tref_id;
54  }
55 
59  public function getLevelId(): int
60  {
61  return $this->level_id;
62  }
63 
67  public function getRepoRefId(): int
68  {
69  return $this->rep_ref_id;
70  }
71 
75  public function getImparting(): bool
76  {
77  return $this->imparting;
78  }
79 
83  public function getTrigger(): bool
84  {
85  return $this->trigger;
86  }
87 }
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)
getTrigger()
True, if the resource imparts knowledge of the skill level (false otherwise)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getRepoRefId()
Ref id of the repository resource.