ILIAS
Release_4_4_x_branch Revision 61816
|
Manages resources for skills. More...
Public Member Functions | |
__construct ($a_skill_id=0, $a_tref_id=0) | |
Constructor. | |
setBaseSkillId ($a_val) | |
Set base skill id. | |
getBaseSkillId () | |
Get base skill id. | |
setTemplateRefId ($a_val) | |
Set template reference id. | |
getTemplateRefId () | |
Get template reference id. | |
readResources () | |
Read resources. | |
save () | |
Save resources. | |
getResources () | |
Get resources. | |
getResourcesOfLevel ($a_level_id) | |
Get resoures for level id. | |
setResourceAsTrigger ($a_level_id, $a_rep_ref_id, $a_trigger=true) | |
Set resource as trigger. | |
setResourceAsImparting ($a_level_id, $a_rep_ref_id, $a_imparting=true) | |
Set resource as imparting resource. |
Static Public Member Functions | |
static | getUsageInfo ($a_cskill_ids, &$a_usages) |
Get usage info. |
Protected Attributes | |
$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 43 of file class.ilSkillResources.php.
References readResources(), setBaseSkillId(), and setTemplateRefId().
ilSkillResources::getBaseSkillId | ( | ) |
Get base skill id.
Definition at line 69 of file class.ilSkillResources.php.
References $base_skill_id.
ilSkillResources::getResources | ( | ) |
Get resources.
Definition at line 158 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 169 of file class.ilSkillResources.php.
References $ret.
ilSkillResources::getTemplateRefId | ( | ) |
Get template reference id.
Definition at line 89 of file class.ilSkillResources.php.
References $tref_id.
|
static |
Get usage info.
@return |
Implements ilSkillUsageInfo.
Definition at line 226 of file class.ilSkillResources.php.
References ilSkillUsage\getUsageInfoGeneric(), and ilSkillUsage\RESOURCE.
ilSkillResources::readResources | ( | ) |
Read resources.
@return |
Definition at line 100 of file class.ilSkillResources.php.
Referenced by __construct().
ilSkillResources::save | ( | ) |
Save resources.
Definition at line 125 of file class.ilSkillResources.php.
References $ref_id, and getResources().
ilSkillResources::setBaseSkillId | ( | $a_val | ) |
Set base skill id.
int | $a_val | base skill id |
Definition at line 59 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 206 of file class.ilSkillResources.php.
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 185 of file class.ilSkillResources.php.
ilSkillResources::setTemplateRefId | ( | $a_val | ) |
Set template reference id.
int | $a_val | template reference id |
Definition at line 79 of file class.ilSkillResources.php.
Referenced by __construct().
|
protected |
Definition at line 23 of file class.ilSkillResources.php.
Referenced by getBaseSkillId().
|
protected |
Definition at line 35 of file class.ilSkillResources.php.
Referenced by getResources().
|
protected |
Definition at line 24 of file class.ilSkillResources.php.
Referenced by getTemplateRefId().