ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Skill usage. More...
Public Member Functions | |
getAllUsagesInfo ($a_cskill_ids) | |
Get all usages info. More... | |
getAllUsagesInfoOfSubtree ($a_skill_id, $a_tref_id=0) | |
Get all usages info of subtree. More... | |
getAllUsagesInfoOfSubtrees ($a_cskill_ids) | |
Get all usages info of subtree. More... | |
getAllUsagesOfTemplate ($a_tempate_id) | |
Get all usages of template. More... | |
Static Public Member Functions | |
static | setUsage ($a_obj_id, $a_skill_id, $a_tref_id, $a_use=true) |
Set usage. More... | |
static | getUsages ($a_skill_id, $a_tref_id) |
Get usages. More... | |
static | getUsageInfo ($a_cskill_ids, &$a_usages) |
Get usage info. More... | |
static | getUsageInfoGeneric ( $a_cskill_ids, &$a_usages, $a_usage_type, $a_table, $a_key_field, $a_skill_field="skill_id", $a_tref_field="tref_id") |
Get standard usage query. More... | |
static | getTypeInfoString ($a_type) |
Get type info string. More... | |
static | getObjTypeString ($a_type) |
Get type info string. More... | |
Data Fields | |
const | TYPE_GENERAL = "gen" |
const | USER_ASSIGNED = "user" |
const | PERSONAL_SKILL = "pers" |
const | USER_MATERIAL = "mat" |
const | SELF_EVAL = "seval" |
const | PROFILE = "prof" |
const | RESOURCE = "res" |
Protected Attributes | |
$classes = array("ilBasicSkill", "ilPersonalSkill", "ilSkillProfile", "ilSkillResources", "ilSkillUsage") | |
Skill usage.
With this class a general skill use by an object (identified by its obj_id) is registered or unregistered.
The class maintains skill usages of the following types
Definition at line 26 of file class.ilSkillUsage.php.
ilSkillUsage::getAllUsagesInfo | ( | $a_cskill_ids | ) |
Get all usages info.
array | of common skill ids ("skill_id" => skill_id, "tref_id" => tref_id) |
Definition at line 170 of file class.ilSkillUsage.php.
References $classes.
Referenced by getAllUsagesInfoOfSubtree(), and getAllUsagesInfoOfSubtrees().
ilSkillUsage::getAllUsagesInfoOfSubtree | ( | $a_skill_id, | |
$a_tref_id = 0 |
|||
) |
Get all usages info of subtree.
int | $a_skill_id | skill node id |
int | $a_tref_id | tref id |
Definition at line 191 of file class.ilSkillUsage.php.
References $nodes, and getAllUsagesInfo().
ilSkillUsage::getAllUsagesInfoOfSubtrees | ( | $a_cskill_ids | ) |
Get all usages info of subtree.
array | $a_cskill_ids | array of common skill ids ("skill_id" => skill_id, "tref_id" => tref_id) |
Definition at line 207 of file class.ilSkillUsage.php.
References $n, $nodes, $s, and getAllUsagesInfo().
Referenced by getAllUsagesOfTemplate().
ilSkillUsage::getAllUsagesOfTemplate | ( | $a_tempate_id | ) |
Get all usages of template.
int | $a_tempate_id | template |
Definition at line 229 of file class.ilSkillUsage.php.
References ilSkillTemplateReference\_lookupTrefIdsForTemplateId(), getAllUsagesInfoOfSubtrees(), and ilLoggerFactory\getLogger().
|
static |
Get type info string.
Definition at line 271 of file class.ilSkillUsage.php.
References $a_type, $DIC, and $lng.
Referenced by ilSkillUsageTableGUI\fillRow().
|
static |
Get type info string.
string | $a_type | usage type |
Definition at line 256 of file class.ilSkillUsage.php.
References $a_type, $DIC, and $lng.
Referenced by ilSkillUsageTableGUI\fillRow().
|
static |
Get usage info.
array | $a_cskill_ids | skill ids |
array | $a_usages | usages array |
Implements ilSkillUsageInfo.
Definition at line 109 of file class.ilSkillUsage.php.
References $DIC, $ilDB, and TYPE_GENERAL.
|
static |
Get standard usage query.
array | $a_cskill_ids | skill ids |
array | $a_usages | usages array |
Definition at line 130 of file class.ilSkillUsage.php.
References $DIC, $ilDB, and $w.
Referenced by ilSkillResources\getUsageInfo(), ilPersonalSkill\getUsageInfo(), ilSkillProfile\getUsageInfo(), and ilBasicSkill\getUsageInfo().
|
static |
Get usages.
int | $a_skill_id | skill id |
int | $a_tref_id | tref id |
Definition at line 84 of file class.ilSkillUsage.php.
|
static |
Set usage.
int | $a_obj_id | object id |
int | $a_skill_id | skill id |
int | $a_tref_id | tref id |
bool | $a_use | in use true/false |
Definition at line 50 of file class.ilSkillUsage.php.
Referenced by ilSurveySkill\addQuestionSkillAssignment(), and ilSurveySkill\removeUsagesOfSkills().
|
protected |
Definition at line 40 of file class.ilSkillUsage.php.
Referenced by getAllUsagesInfo().
const ilSkillUsage::PERSONAL_SKILL = "pers" |
Definition at line 30 of file class.ilSkillUsage.php.
Referenced by ilPersonalSkill\getUsageInfo().
const ilSkillUsage::PROFILE = "prof" |
Definition at line 33 of file class.ilSkillUsage.php.
Referenced by ilSkillProfile\getUsageInfo().
const ilSkillUsage::RESOURCE = "res" |
Definition at line 34 of file class.ilSkillUsage.php.
Referenced by ilSkillResources\getUsageInfo().
const ilSkillUsage::SELF_EVAL = "seval" |
Definition at line 32 of file class.ilSkillUsage.php.
Referenced by ilPersonalSkill\getUsageInfo().
const ilSkillUsage::TYPE_GENERAL = "gen" |
Definition at line 28 of file class.ilSkillUsage.php.
Referenced by getUsageInfo().
const ilSkillUsage::USER_ASSIGNED = "user" |
Definition at line 29 of file class.ilSkillUsage.php.
Referenced by ilBasicSkill\getUsageInfo().
const ilSkillUsage::USER_MATERIAL = "mat" |
Definition at line 31 of file class.ilSkillUsage.php.
Referenced by ilPersonalSkill\getUsageInfo().