ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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... | |
getAssignedObjectsForSkill (int $a_skill_id, int $a_tref_id) | |
getAssignedObjectsForSkillTemplate (int $a_template_id) | |
getAssignedObjectsForSkillProfile (int $a_profile_id) | |
Static Public Member Functions | |
static | setUsage ($a_obj_id, $a_skill_id, $a_tref_id, $a_use=true) |
Set usage. More... | |
static | removeUsagesFromObject ($a_obj_id) |
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 22 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 178 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 196 of file class.ilSkillUsage.php.
References 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 211 of file class.ilSkillUsage.php.
References $n, and getAllUsagesInfo().
Referenced by getAllUsagesOfTemplate().
ilSkillUsage::getAllUsagesOfTemplate | ( | $a_tempate_id | ) |
Get all usages of template.
int | $a_tempate_id | template |
Definition at line 232 of file class.ilSkillUsage.php.
References ilSkillTemplateReference\_lookupTrefIdsForTemplateId(), getAllUsagesInfoOfSubtrees(), and ilLoggerFactory\getLogger().
Referenced by getAssignedObjectsForSkillTemplate().
ilSkillUsage::getAssignedObjectsForSkill | ( | int | $a_skill_id, |
int | $a_tref_id | ||
) |
int | $a_skill_id | |
int | $a_tref_id |
Definition at line 305 of file class.ilSkillUsage.php.
ilSkillUsage::getAssignedObjectsForSkillProfile | ( | int | $a_profile_id | ) |
ilSkillUsage::getAssignedObjectsForSkillTemplate | ( | int | $a_template_id | ) |
int | $a_template_id |
Definition at line 317 of file class.ilSkillUsage.php.
References getAllUsagesOfTemplate().
|
static |
Get type info string.
Definition at line 273 of file class.ilSkillUsage.php.
Referenced by ilSkillUsageTableGUI\fillRow().
|
static |
Get type info string.
string | $a_type | usage type |
Definition at line 258 of file class.ilSkillUsage.php.
Referenced by ilSkillUsageTableGUI\fillRow().
|
static |
Get usage info.
array | $a_cskill_ids | skill ids |
array | $a_usages | usages array |
Implements ilSkillUsageInfo.
Definition at line 117 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 138 of file class.ilSkillUsage.php.
Referenced by ilSkillResources\getUsageInfo(), ilPersonalSkill\getUsageInfo(), ilBasicSkill\getUsageInfo(), and ilSkillProfile\getUsageInfo().
|
static |
Get usages.
int | $a_skill_id | skill id |
int | $a_tref_id | tref id |
Definition at line 92 of file class.ilSkillUsage.php.
|
static |
Definition at line 73 of file class.ilSkillUsage.php.
Referenced by ilSkillObjDeletionHandler\processDeletion().
|
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 46 of file class.ilSkillUsage.php.
Referenced by ilSurveySkill\addQuestionSkillAssignment(), ilContSkillAdminGUI\removeSelectedSkill(), ilSurveySkill\removeUsagesOfSkills(), and ilContSkillAdminGUI\saveSelectedSkill().
|
protected |
Definition at line 36 of file class.ilSkillUsage.php.
Referenced by getAllUsagesInfo().
const ilSkillUsage::PERSONAL_SKILL = "pers" |
Definition at line 26 of file class.ilSkillUsage.php.
Referenced by ilPersonalSkill\getUsageInfo().
const ilSkillUsage::PROFILE = "prof" |
Definition at line 29 of file class.ilSkillUsage.php.
Referenced by ilSkillProfile\getUsageInfo().
const ilSkillUsage::RESOURCE = "res" |
Definition at line 30 of file class.ilSkillUsage.php.
Referenced by ilSkillResources\getUsageInfo().
const ilSkillUsage::SELF_EVAL = "seval" |
Definition at line 28 of file class.ilSkillUsage.php.
Referenced by ilPersonalSkill\getUsageInfo().
const ilSkillUsage::TYPE_GENERAL = "gen" |
Definition at line 24 of file class.ilSkillUsage.php.
Referenced by getUsageInfo().
const ilSkillUsage::USER_ASSIGNED = "user" |
Definition at line 25 of file class.ilSkillUsage.php.
Referenced by ilBasicSkill\getUsageInfo().
const ilSkillUsage::USER_MATERIAL = "mat" |
Definition at line 27 of file class.ilSkillUsage.php.
Referenced by ilPersonalSkill\getUsageInfo().