|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Inheritance diagram for ILIAS\Skill\Usage\SkillUsageManager:
Collaboration diagram for ILIAS\Skill\Usage\SkillUsageManager:Public Member Functions | |
| __construct (SkillUsageDBRepository $usage_repo=null, SkillTreeFactory $tree_factory=null, \ilSkillTreeRepository $tree_repo=null, SkillProfileManager $profile_manager=null) | |
| addUsage (int $obj_id, int $skill_id, int $tref_id) | |
| removeUsage (int $obj_id, int $skill_id, int $tref_id) | |
| removeUsagesFromObject (int $obj_id) | |
| removeUsagesForSkill (int $node_id, bool $is_referenece=false) | |
| getUsages (int $skill_id, int $tref_id) | |
| getUsageInfoGeneric (array $cskill_ids, string $usage_type, string $table, string $key_field, string $skill_field="skill_id", string $tref_field="tref_id") | |
| Get standard usage query. More... | |
| getAllUsagesInfo (array $cskill_ids) | |
| getAllUsagesInfoOfTrees (array $tree_ids) | |
| getAllUsagesInfoOfSubtree (int $skill_id, int $tref_id=0) | |
| getAllUsagesInfoOfSubtrees (array $cskill_ids) | |
| getAllUsagesOfTemplate (int $template_id) | |
| getTypeInfoString (string $type) | |
| getObjTypeString (string $type) | |
| getAssignedObjectsForSkill (int $skill_id, int $tref_id) | |
| getAssignedObjectsForSkillTemplate (int $template_id) | |
| getAssignedObjectsForSkillProfile (int $profile_id) | |
Static Public Member Functions | |||
| static | getUsageInfo (array $a_cskill_ids) | ||
Get title of an assigned item.
| |||
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 | |
| array | $classes |
| SkillUsageDBRepository | $usage_repo |
| SkillTreeFactory | $tree_factory |
| ilSkillTreeRepository | $tree_repo |
| SkillProfileManager | $profile_manager |
| ilLanguage | $lng |
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 46 of file class.SkillUsageManager.php.
| ILIAS\Skill\Usage\SkillUsageManager::__construct | ( | SkillUsageDBRepository | $usage_repo = null, |
| SkillTreeFactory | $tree_factory = null, |
||
| \ilSkillTreeRepository | $tree_repo = null, |
||
| SkillProfileManager | $profile_manager = null |
||
| ) |
Definition at line 68 of file class.SkillUsageManager.php.
References $DIC, ILIAS\Skill\Usage\SkillUsageManager\$profile_manager, ILIAS\Skill\Usage\SkillUsageManager\$tree_factory, ILIAS\Skill\Usage\SkillUsageManager\$tree_repo, ILIAS\Skill\Usage\SkillUsageManager\$usage_repo, and ILIAS\Repository\lng().
Here is the call graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::addUsage | ( | int | $obj_id, |
| int | $skill_id, | ||
| int | $tref_id | ||
| ) |
Definition at line 83 of file class.SkillUsageManager.php.
| ILIAS\Skill\Usage\SkillUsageManager::getAllUsagesInfo | ( | array | $cskill_ids | ) |
| array{skill_id | int, tref_id: int}[] $cskill_ids array of common skill ids ("skill_id" => skill_id, "tref_id" => tref_id) |
Definition at line 161 of file class.SkillUsageManager.php.
References ILIAS\Skill\Usage\SkillUsageManager\$classes.
Referenced by ILIAS\Skill\Usage\SkillUsageManager\getAllUsagesInfoOfSubtree(), ILIAS\Skill\Usage\SkillUsageManager\getAllUsagesInfoOfSubtrees(), and ILIAS\Skill\Usage\SkillUsageManager\getAllUsagesInfoOfTrees().
Here is the caller graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::getAllUsagesInfoOfSubtree | ( | int | $skill_id, |
| int | $tref_id = 0 |
||
| ) |
Definition at line 195 of file class.SkillUsageManager.php.
References ILIAS\Skill\Usage\SkillUsageManager\getAllUsagesInfo().
Here is the call graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::getAllUsagesInfoOfSubtrees | ( | array | $cskill_ids | ) |
| array | $cskill_ids | array of common skill ids ("skill_id" => skill_id, "tref_id" => tref_id) |
Definition at line 208 of file class.SkillUsageManager.php.
References ILIAS\Skill\Usage\SkillUsageManager\getAllUsagesInfo().
Referenced by ILIAS\Skill\Usage\SkillUsageManager\getAllUsagesOfTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::getAllUsagesInfoOfTrees | ( | array | $tree_ids | ) |
| array | $tree_ids | array of common skill ids ("skill_id" => skill_id, "tref_id" => tref_id) |
Definition at line 176 of file class.SkillUsageManager.php.
References ILIAS\Skill\Usage\SkillUsageManager\getAllUsagesInfo().
Here is the call graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::getAllUsagesOfTemplate | ( | int | $template_id | ) |
Definition at line 226 of file class.SkillUsageManager.php.
References ilSkillTemplateReference\_lookupTrefIdsForTemplateId(), ILIAS\Skill\Usage\SkillUsageManager\getAllUsagesInfoOfSubtrees(), and ilLoggerFactory\getLogger().
Referenced by ILIAS\Skill\Usage\SkillUsageManager\getAssignedObjectsForSkillTemplate().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::getAssignedObjectsForSkill | ( | int | $skill_id, |
| int | $tref_id | ||
| ) |
Definition at line 275 of file class.SkillUsageManager.php.
References ILIAS\Skill\Usage\SkillUsageManager\getUsages().
Here is the call graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::getAssignedObjectsForSkillProfile | ( | int | $profile_id | ) |
Definition at line 297 of file class.SkillUsageManager.php.
References $id, ilObject\_getAllReferences(), ilObject\_hasUntrashedReference(), ilParticipants\getDefaultMemberRole(), and ILIAS\Skill\Usage\SkillUsageManager\getUsages().
Here is the call graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::getAssignedObjectsForSkillTemplate | ( | int | $template_id | ) |
Definition at line 286 of file class.SkillUsageManager.php.
References ILIAS\Skill\Usage\SkillUsageManager\getAllUsagesOfTemplate().
Here is the call graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::getObjTypeString | ( | string | $type | ) |
Definition at line 251 of file class.SkillUsageManager.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::getTypeInfoString | ( | string | $type | ) |
Definition at line 246 of file class.SkillUsageManager.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:
|
static |
Get title of an assigned item.
| array{skill_id | int, tref_id: int}[] $a_cskill_ids array of common skill ids |
Implements ILIAS\Skill\Usage\SkillUsageInfo.
Definition at line 116 of file class.SkillUsageManager.php.
| ILIAS\Skill\Usage\SkillUsageManager::getUsageInfoGeneric | ( | array | $cskill_ids, |
| string | $usage_type, | ||
| string | $table, | ||
| string | $key_field, | ||
| string | $skill_field = "skill_id", |
||
| string | $tref_field = "tref_id" |
||
| ) |
Get standard usage query.
| array{skill_id | int, tref_id: int}[] $cskill_ids |
Definition at line 133 of file class.SkillUsageManager.php.
| ILIAS\Skill\Usage\SkillUsageManager::getUsages | ( | int | $skill_id, |
| int | $tref_id | ||
| ) |
Definition at line 106 of file class.SkillUsageManager.php.
Referenced by ILIAS\Skill\Usage\SkillUsageManager\getAssignedObjectsForSkill(), and ILIAS\Skill\Usage\SkillUsageManager\getAssignedObjectsForSkillProfile().
Here is the caller graph for this function:| ILIAS\Skill\Usage\SkillUsageManager::removeUsage | ( | int | $obj_id, |
| int | $skill_id, | ||
| int | $tref_id | ||
| ) |
Definition at line 88 of file class.SkillUsageManager.php.
| ILIAS\Skill\Usage\SkillUsageManager::removeUsagesForSkill | ( | int | $node_id, |
| bool | $is_referenece = false |
||
| ) |
Definition at line 98 of file class.SkillUsageManager.php.
| ILIAS\Skill\Usage\SkillUsageManager::removeUsagesFromObject | ( | int | $obj_id | ) |
Definition at line 93 of file class.SkillUsageManager.php.
|
protected |
Definition at line 59 of file class.SkillUsageManager.php.
Referenced by ILIAS\Skill\Usage\SkillUsageManager\getAllUsagesInfo().
|
protected |
Definition at line 66 of file class.SkillUsageManager.php.
|
protected |
Definition at line 65 of file class.SkillUsageManager.php.
Referenced by ILIAS\Skill\Usage\SkillUsageManager\__construct().
|
protected |
Definition at line 63 of file class.SkillUsageManager.php.
Referenced by ILIAS\Skill\Usage\SkillUsageManager\__construct().
|
protected |
Definition at line 64 of file class.SkillUsageManager.php.
Referenced by ILIAS\Skill\Usage\SkillUsageManager\__construct().
|
protected |
Definition at line 62 of file class.SkillUsageManager.php.
Referenced by ILIAS\Skill\Usage\SkillUsageManager\__construct().
| const ILIAS\Skill\Usage\SkillUsageManager::PERSONAL_SKILL = "pers" |
Definition at line 50 of file class.SkillUsageManager.php.
Referenced by ILIAS\Skill\Personal\PersonalSkillDBRepository\getUsages().
| const ILIAS\Skill\Usage\SkillUsageManager::PROFILE = "prof" |
Definition at line 53 of file class.SkillUsageManager.php.
Referenced by ILIAS\Skill\Profile\SkillProfileManager\getUsageInfo().
| const ILIAS\Skill\Usage\SkillUsageManager::RESOURCE = "res" |
Definition at line 54 of file class.SkillUsageManager.php.
Referenced by ILIAS\Skill\Resource\SkillResourcesManager\getUsageInfo().
| const ILIAS\Skill\Usage\SkillUsageManager::SELF_EVAL = "seval" |
Definition at line 52 of file class.SkillUsageManager.php.
| const ILIAS\Skill\Usage\SkillUsageManager::TYPE_GENERAL = "gen" |
Definition at line 48 of file class.SkillUsageManager.php.
| const ILIAS\Skill\Usage\SkillUsageManager::USER_ASSIGNED = "user" |
Definition at line 49 of file class.SkillUsageManager.php.
| const ILIAS\Skill\Usage\SkillUsageManager::USER_MATERIAL = "mat" |
Definition at line 51 of file class.SkillUsageManager.php.
Referenced by ILIAS\Skill\Personal\AssignedMaterialManager\getUsageInfo().