ILIAS
Release_5_0_x_branch Revision 61816
|
Skill usage. More...
Public Member Functions | |
getAllUsagesInfo ($a_cskill_ids) | |
Get all usages info. | |
getAllUsagesInfoOfSubtree ($a_skill_id, $a_tref_id=0) | |
Get all usages info of subtree. | |
getAllUsagesInfoOfSubtrees ($a_cskill_ids) | |
Get all usages info of subtree. |
Static Public Member Functions | |
static | setUsage ($a_obj_id, $a_skill_id, $a_tref_id, $a_use=true) |
Set usage. | |
static | getUsages ($a_skill_id, $a_tref_id) |
Get usages. | |
static | getUsageInfo ($a_cskill_ids, &$a_usages) |
Get usage info. | |
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. | |
static | getTypeInfoString ($a_type) |
Get type info string. | |
static | getObjTypeString ($a_type) |
Get type info string. |
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 155 of file class.ilSkillUsage.php.
References $classes, and getUsageInfo().
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 177 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 193 of file class.ilSkillUsage.php.
References $n, and getAllUsagesInfo().
|
static |
Get type info string.
@return |
Definition at line 231 of file class.ilSkillUsage.php.
References $lng.
Referenced by ilSkillUsageTableGUI\fillRow().
|
static |
Get type info string.
string | $a_type | usage type |
Definition at line 218 of file class.ilSkillUsage.php.
References $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 106 of file class.ilSkillUsage.php.
References $ilDB, getUsageInfoGeneric(), and TYPE_GENERAL.
Referenced by getAllUsagesInfo().
|
static |
Get standard usage query.
array | $a_cskill_ids | skill ids |
array | $a_usages | usages array |
Definition at line 120 of file class.ilSkillUsage.php.
References $ilDB.
Referenced by getUsageInfo(), 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 83 of file class.ilSkillUsage.php.
References $ilDB.
|
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.
References $ilDB.
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().