ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Manages resources for skills. More...
Public Member Functions | |
__construct ($a_skill_id=0, $a_tref_id=0) | |
Constructor. More... | |
setBaseSkillId ($a_val) | |
Set base skill id. More... | |
getBaseSkillId () | |
Get base skill id. More... | |
setTemplateRefId ($a_val) | |
Set template reference id. More... | |
getTemplateRefId () | |
Get template reference id. More... | |
readResources () | |
Read resources. More... | |
save () | |
Save resources. More... | |
getResources () | |
Get resources. More... | |
getResourcesOfLevel ($a_level_id) | |
Get resoures for level id. More... | |
setResourceAsTrigger ($a_level_id, $a_rep_ref_id, $a_trigger=true) | |
Set resource as trigger. More... | |
setResourceAsImparting ($a_level_id, $a_rep_ref_id, $a_imparting=true) | |
Set resource as imparting resource. More... | |
Static Public Member Functions | |
static | getUsageInfo ($a_cskill_ids, &$a_usages) |
Get usage info. More... | |
static | getTriggerLevelsForRefId ($a_ref_id) |
Get levels for trigger per ref id. More... | |
Protected Attributes | |
$db | |
$tree | |
$base_skill_id | |
$tref_id | |
$resources = array() | |
Manages resources for skills.
This is not about user assigned materials, it is about resources that are assigned to skill levels in the competence management administration of ILIAS.
This can be either triggers (e.g. a course that triggers a competence level) or resources that impart the knowledge of a competence level. Imparting does not necessarily mean that it triggers a competence level.
Definition at line 21 of file class.ilSkillResources.php.
ilSkillResources::__construct | ( | $a_skill_id = 0 , |
|
$a_tref_id = 0 |
|||
) |
Constructor.
int | $a_skill_id | base skill id |
int | $a_tref_id | template reference id (0, if no template is involved) |
Definition at line 53 of file class.ilSkillResources.php.
References $DIC, readResources(), setBaseSkillId(), and setTemplateRefId().
ilSkillResources::getBaseSkillId | ( | ) |
Get base skill id.
Definition at line 82 of file class.ilSkillResources.php.
References $base_skill_id.
ilSkillResources::getResources | ( | ) |
Get resources.
Definition at line 169 of file class.ilSkillResources.php.
References $resources.
Referenced by save().
ilSkillResources::getResourcesOfLevel | ( | $a_level_id | ) |
Get resoures for level id.
int | $a_level_id | level id |
Definition at line 180 of file class.ilSkillResources.php.
ilSkillResources::getTemplateRefId | ( | ) |
Get template reference id.
Definition at line 102 of file class.ilSkillResources.php.
References $tref_id.
|
static |
Get levels for trigger per ref id.
int | $a_ref_id |
Definition at line 256 of file class.ilSkillResources.php.
References $db, $DIC, and array.
Referenced by ilSkillAppEventListener\handleEvent().
|
static |
Get usage info.
Implements ilSkillUsageInfo.
Definition at line 233 of file class.ilSkillResources.php.
References $DIC, $ilDB, ilSkillUsage\getUsageInfoGeneric(), and ilSkillUsage\RESOURCE.
ilSkillResources::readResources | ( | ) |
Read resources.
Definition at line 113 of file class.ilSkillResources.php.
References $db, $ilDB, $tree, and array.
Referenced by __construct().
ilSkillResources::save | ( | ) |
Save resources.
Definition at line 138 of file class.ilSkillResources.php.
References $db, $ilDB, $l, $r, and getResources().
ilSkillResources::setBaseSkillId | ( | $a_val | ) |
Set base skill id.
int | $a_val | base skill id |
Definition at line 72 of file class.ilSkillResources.php.
Referenced by __construct().
ilSkillResources::setResourceAsImparting | ( | $a_level_id, | |
$a_rep_ref_id, | |||
$a_imparting = true |
|||
) |
Set resource as imparting resource.
int | $a_level_id | level id |
int | $a_rep_ref_id | repository resource ref id |
bool | $a_imparting | imparting knowledge true/false |
Definition at line 215 of file class.ilSkillResources.php.
References array.
ilSkillResources::setResourceAsTrigger | ( | $a_level_id, | |
$a_rep_ref_id, | |||
$a_trigger = true |
|||
) |
Set resource as trigger.
int | $a_level_id | level id |
int | $a_rep_ref_id | repository resource ref id |
bool | $a_trigger | trigger true/false |
Definition at line 196 of file class.ilSkillResources.php.
References array.
ilSkillResources::setTemplateRefId | ( | $a_val | ) |
Set template reference id.
int | $a_val | template reference id |
Definition at line 92 of file class.ilSkillResources.php.
Referenced by __construct().
|
protected |
Definition at line 33 of file class.ilSkillResources.php.
Referenced by getBaseSkillId().
|
protected |
Definition at line 26 of file class.ilSkillResources.php.
Referenced by getTriggerLevelsForRefId(), readResources(), and save().
|
protected |
Definition at line 45 of file class.ilSkillResources.php.
Referenced by getResources().
|
protected |
Definition at line 31 of file class.ilSkillResources.php.
Referenced by readResources().
|
protected |
Definition at line 34 of file class.ilSkillResources.php.
Referenced by getTemplateRefId().