ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Basic Skill. More...
Public Member Functions | |
__construct (int $a_id=0, ilBasicSkillLevelRepository $bsc_skl_lvl_db_rep=null, ilBasicSkillUserLevelRepository $bsc_skl_usr_lvl_db_rep=null, ilBasicSkillTreeRepository $bsc_skl_tre_rep=null) | |
ilBasicSkill constructor. More... | |
read () | |
Read data from database. More... | |
create () | |
Create skill. More... | |
delete () | |
Delete skill. More... | |
copy () | |
Copy basic skill. More... | |
addLevel (string $a_title, string $a_description, string $a_import_id="") | |
getLevelData (int $a_id=0) | |
updateLevelOrder (array $order) | |
deleteLevel (int $a_id) | |
fixLevelNumbering () | |
getSkillForLevelId (int $a_level_id) | |
getMaxLevelPerType (int $a_tref_id, string $a_type, int $a_user_id=0, int $a_self_eval=0) | |
getAllLevelEntriesOfUser (int $a_tref_id, int $a_user_id=0, int $a_self_eval=0) | |
getAllHistoricLevelEntriesOfUser (int $a_tref_id, int $a_user_id=0, int $a_eval_by=0) | |
getMaxLevelPerObject (int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0) | |
getMaxLevel (int $a_tref_id, int $a_user_id=0, int $a_self_eval=0) | |
getLastLevelPerObject (int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0) | |
getLastUpdatePerObject (int $a_tref_id, int $a_object_id, int $a_user_id=0, int $a_self_eval=0) | |
getTitleForCertificate () | |
Get title for certificate. More... | |
getShortTitleForCertificate () | |
Get short title for certificate. More... | |
![]() | |
__construct ($a_id=0) | |
setTitle ($a_title) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
setDescription ($a_description) | |
Set description. More... | |
getDescription () | |
Get description. More... | |
setType ($a_type) | |
Set type. More... | |
getType () | |
Get type. More... | |
setId ($a_id) | |
Set Node ID. More... | |
getId () | |
Get Node ID. More... | |
setSelfEvaluation ($a_val) | |
Set self evaluation. More... | |
getSelfEvaluation () | |
Get self evaluation. More... | |
setOrderNr ($a_val) | |
Set order nr. More... | |
getOrderNr () | |
Get order nr. More... | |
setImportId ($a_val) | |
Set import id. More... | |
getImportId () | |
Get import id. More... | |
getCreationDate () | |
Get creation date. More... | |
read () | |
Read Data of Node. More... | |
setDataRecord ($a_record) | |
this method should only be called by class ilSCORM2004NodeFactory More... | |
setStatus ($a_val) | |
Set status. More... | |
getStatus () | |
Get status. More... | |
create () | |
Create Node. More... | |
update () | |
Update Node. More... | |
delete () | |
Delete Node. More... | |
Static Public Member Functions | |
static | lookupLevelTitle (int $a_id) |
static | lookupLevelDescription (int $a_id) |
static | lookupLevelSkillId (int $a_id) |
static | writeLevelTitle (int $a_id, string $a_title) |
static | writeLevelDescription (int $a_id, string $a_description) |
static | resetUserSkillLevelStatus (int $a_user_id, int $a_skill_id, int $a_tref_id=0, int $a_trigger_ref_id=0, bool $a_self_eval=false) |
static | getNewAchievementsPerUser (string $a_timestamp, string $a_timestamp_to=null, int $a_user_id=0, int $a_self_eval=0) |
static | writeUserSkillLevelStatus (int $a_level_id, int $a_user_id, int $a_trigger_ref_id, int $a_tref_id=0, int $a_status=ilBasicSkill::ACHIEVED, bool $a_force=false, bool $a_self_eval=false, string $a_unique_identifier="", float $a_next_level_fulfilment=0.0) |
static | removeAllUserSkillLevelStatusOfObject (int $a_user_id, int $a_trigger_obj_id, bool $a_self_eval=false, string $a_unique_identifier="") |
static | removeAllUserData (int $a_user_id) |
static | hasSelfEvaluated (int $a_user_id, int $a_skill_id, int $a_tref_id) |
static | _lookupCertificate (int $a_skill_id, int $a_skill_level_id) |
Checks whether a skill level has a certificate or not. More... | |
static | getUsageInfo ($a_cskill_ids, &$a_usages) |
Get usage info. More... | |
static | getCommonSkillIdForImportId (int $a_source_inst_id, int $a_skill_import_id, int $a_tref_import_id=0) |
static | getLevelIdForImportId (int $a_source_inst_id, int $a_level_import_id) |
static | getLevelIdForImportIdMatchSkill (int $a_source_inst_id, int $a_level_import_id, int $a_skill_import_id, int $a_tref_import_id=0) |
Get level ids for import Ids matching common skills. More... | |
![]() | |
static | getAllStatus () |
Get all status. More... | |
static | getStatusInfo ($a_status) |
Get status info. More... | |
static | _lookupTitle ($a_obj_id, $a_tref_id=0) |
Lookup Title. More... | |
static | _lookupDescription ($a_obj_id) |
Lookup Description. More... | |
static | _lookupSelfEvaluation ($a_obj_id) |
Lookup self evaluation. More... | |
static | _lookupStatus ($a_obj_id) |
Lookup Status. More... | |
static | _lookupType ($a_obj_id) |
Lookup Type. More... | |
static | _writeTitle ($a_obj_id, $a_title) |
Write Title. More... | |
static | _writeDescription ($a_obj_id, $a_description) |
Write Description. More... | |
static | _writeOrderNr ($a_obj_id, $a_nr) |
Write Order Nr. More... | |
static | putInTree ($a_obj, $a_parent_id="", $a_target_node_id="") |
Put this object into the skill tree. More... | |
static | getTree ($a_slm_obj_id) |
Get scorm module editing tree. More... | |
static | uniqueTypesCheck ($a_items) |
Check for unique types. More... | |
static | clipboardCut ($a_tree_id, $a_ids) |
Cut and copy a set of skills/skill categories into the clipboard. More... | |
static | clipboardCopy ($a_tree_id, $a_ids) |
Copy a set of skills/skill categories into the clipboard. More... | |
static | insertItemsFromClip ($a_type, $a_obj_id) |
Insert basic skills from clipboard. More... | |
static | clearClipboard () |
Remove all skill items from clipboard. More... | |
static | pasteTree ( $a_item_id, $a_parent_id, $a_target, $a_insert_time, &$a_copied_nodes, $a_as_copy=false, $a_add_suffix=false) |
Paste item (tree) from clipboard to skill tree. More... | |
static | isInTree ($a_id) |
Is id in tree? More... | |
static | getAllSelfEvaluationNodes () |
Get all self evaluation nodes. More... | |
static | getTopTemplates () |
Get top skill templates and template categories. More... | |
static | getSelectableSkills () |
Get selectable skills. More... | |
static | saveChildsOrder ($a_par_id, $a_childs_order, $a_templates=false) |
Save childs order. More... | |
static | getIconPath ($a_obj_id, $a_type, $a_size="", $a_status=0) |
Get icon path. More... | |
static | findSkills ($a_term) |
Find skills. More... | |
static | getAllCSkillIdsForNodeIds (array $a_node_ids) |
Get all possible common skill IDs for node IDs. More... | |
Data Fields | |
const | ACHIEVED = 1 |
const | NOT_ACHIEVED = 0 |
const | EVAL_BY_OTHERS_ = 0 |
const | EVAL_BY_SELF = 1 |
const | EVAL_BY_ALL = 2 |
$id | |
![]() | |
$skill_tree | |
const | STATUS_PUBLISH = 0 |
const | STATUS_DRAFT = 1 |
const | STATUS_OUTDATED = 2 |
$type | |
$id | |
$title | |
$description | |
Static Protected Member Functions | |
static | hasRecentSelfEvaluation (int $a_user_id, int $a_skill_id, int $a_tref_id=0, int $a_trigger_ref_id=0) |
![]() | |
static | _lookup ($a_obj_id, $a_field) |
Lookup Title. More... | |
Protected Attributes | |
$user | |
$bsc_skl_lvl_db_rep | |
$bsc_skl_usr_lvl_db_rep | |
$bsc_skl_tre_rep | |
![]() | |
$db | |
Additional Inherited Members | |
![]() | |
setCreationDate ($a_val) | |
Set creation date. More... | |
Basic Skill.
Definition at line 9 of file class.ilBasicSkill.php.
ilBasicSkill::__construct | ( | int | $a_id = 0 , |
ilBasicSkillLevelRepository | $bsc_skl_lvl_db_rep = null , |
||
ilBasicSkillUserLevelRepository | $bsc_skl_usr_lvl_db_rep = null , |
||
ilBasicSkillTreeRepository | $bsc_skl_tre_rep = null |
||
) |
ilBasicSkill constructor.
int | $a_id | |
ilBasicSkillLevelRepository | null | $bsc_skl_lvl_db_rep | |
ilBasicSkillUserLevelRepository | null | $bsc_skl_usr_lvl_db_rep | |
ilBasicSkillTreeRepository | null | $bsc_skl_tre_rep |
Definition at line 48 of file class.ilBasicSkill.php.
References $bsc_skl_lvl_db_rep, $bsc_skl_tre_rep, $bsc_skl_usr_lvl_db_rep, $DIC, ILIAS\GlobalScreen\Provider\__construct(), ilSkillTreeNode\setType(), and user().
|
static |
Checks whether a skill level has a certificate or not.
int | $a_skill_id | skill id |
int | $a_skill_level_id | skill level id |
Definition at line 524 of file class.ilBasicSkill.php.
References CLIENT_WEB_DIR.
ilBasicSkill::addLevel | ( | string | $a_title, |
string | $a_description, | ||
string | $a_import_id = "" |
||
) |
Definition at line 142 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId().
ilBasicSkill::copy | ( | ) |
Copy basic skill.
Definition at line 115 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getDescription(), getLevelData(), ilSkillTreeNode\getOrderNr(), ilSkillTreeNode\getSelfEvaluation(), ilSkillTreeNode\getTitle(), and ilSkillTreeNode\getType().
ilBasicSkill::create | ( | ) |
ilBasicSkill::delete | ( | ) |
Delete skill.
Definition at line 103 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId().
ilBasicSkill::deleteLevel | ( | int | $a_id | ) |
Definition at line 214 of file class.ilBasicSkill.php.
ilBasicSkill::fixLevelNumbering | ( | ) |
Definition at line 219 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId().
ilBasicSkill::getAllHistoricLevelEntriesOfUser | ( | int | $a_tref_id, |
int | $a_user_id = 0 , |
||
int | $a_eval_by = 0 |
||
) |
Definition at line 406 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and user().
ilBasicSkill::getAllLevelEntriesOfUser | ( | int | $a_tref_id, |
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 393 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and user().
|
static |
Definition at line 551 of file class.ilBasicSkill.php.
Referenced by ilAssQuestionSkillAssignmentImporter\getSkillIdMapping(), ilSurveyDataSet\importRecord(), and ilSkillDataSet\importRecord().
ilBasicSkill::getLastLevelPerObject | ( | int | $a_tref_id, |
int | $a_object_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 464 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and user().
ilBasicSkill::getLastUpdatePerObject | ( | int | $a_tref_id, |
int | $a_object_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 479 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), and user().
ilBasicSkill::getLevelData | ( | int | $a_id = 0 | ) |
Definition at line 148 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId().
Referenced by ilBasicSkillTemplate\copy(), copy(), getMaxLevel(), getMaxLevelPerObject(), and getMaxLevelPerType().
|
static |
Definition at line 571 of file class.ilBasicSkill.php.
Referenced by ilTestSkillLevelThresholdImporter\getLevelIdMapping(), and ilSkillDataSet\importRecord().
|
static |
Get level ids for import Ids matching common skills.
int | $a_source_inst_id | |
int | $a_level_import_id | |
int | $a_skill_import_id | |
int | $a_tref_import_id |
Definition at line 590 of file class.ilBasicSkill.php.
References lookupLevelSkillId().
Referenced by ilSurveyDataSet\importRecord().
ilBasicSkill::getMaxLevel | ( | int | $a_tref_id, |
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 436 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), getLevelData(), and user().
ilBasicSkill::getMaxLevelPerObject | ( | int | $a_tref_id, |
int | $a_object_id, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 420 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), getLevelData(), and user().
ilBasicSkill::getMaxLevelPerType | ( | int | $a_tref_id, |
string | $a_type, | ||
int | $a_user_id = 0 , |
||
int | $a_self_eval = 0 |
||
) |
Definition at line 377 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getId(), getLevelData(), and user().
|
static |
Definition at line 287 of file class.ilBasicSkill.php.
Referenced by ilSkillLearningHistoryProvider\getEntries(), and ilSkillNotifications\run().
ilBasicSkill::getShortTitleForCertificate | ( | ) |
Get short title for certificate.
Definition at line 513 of file class.ilBasicSkill.php.
ilBasicSkill::getSkillForLevelId | ( | int | $a_level_id | ) |
Definition at line 225 of file class.ilBasicSkill.php.
ilBasicSkill::getTitleForCertificate | ( | ) |
Get title for certificate.
Definition at line 504 of file class.ilBasicSkill.php.
References ilSkillTreeNode\getTitle().
|
static |
Get usage info.
array | $a_cskill_ids | |
array | $a_usages |
Implements ilSkillUsageInfo.
Definition at line 540 of file class.ilBasicSkill.php.
References ilSkillUsage\getUsageInfoGeneric(), and ilSkillUsage\USER_ASSIGNED.
|
staticprotected |
Definition at line 267 of file class.ilBasicSkill.php.
|
static |
Definition at line 450 of file class.ilBasicSkill.php.
Referenced by ilPersonalSkillsGUI\getSuggestedResources(), ilPersonalSkillsGUI\listAssignedProfile(), and ilPersonalSkillsGUI\renderSkillHTML().
|
static |
Definition at line 166 of file class.ilBasicSkill.php.
|
static |
Definition at line 177 of file class.ilBasicSkill.php.
Referenced by getLevelIdForImportIdMatchSkill(), ilSkillDataSet\importRecord(), and writeUserSkillLevelStatus().
|
static |
Definition at line 155 of file class.ilBasicSkill.php.
Referenced by ilSkillProfileGUI\confirmLevelAssignmentRemoval(), ilBasicSkillGUI\confirmLevelDeletion(), ilSkillProfileLevelsTableGUI\fillRow(), ilContSkillMemberTableGUI\fillRow(), ilSkillLearningHistoryProvider\getEntries(), ilPersonalSkillsGUI\getSuggestedResources(), ilSkillNotifications\sendMail(), ilBasicSkillTemplateGUI\setLevelHead(), and ilBasicSkillGUI\setLevelHead().
ilBasicSkill::read | ( | ) |
Read data from database.
Definition at line 87 of file class.ilBasicSkill.php.
|
static |
Definition at line 367 of file class.ilBasicSkill.php.
Referenced by ilSkillObjDeletionHandler\processDeletion().
|
static |
Definition at line 348 of file class.ilBasicSkill.php.
Referenced by ilContainerMemberSkills\publish(), and ilContainerMemberSkills\removeAllSkillLevels().
|
static |
Definition at line 236 of file class.ilBasicSkill.php.
Referenced by ilPersonalSkill\saveSelfEvaluation().
ilBasicSkill::updateLevelOrder | ( | array | $order | ) |
Definition at line 208 of file class.ilBasicSkill.php.
|
static |
Definition at line 198 of file class.ilBasicSkill.php.
|
static |
Definition at line 188 of file class.ilBasicSkill.php.
|
static |
Definition at line 302 of file class.ilBasicSkill.php.
References $DIC, $ilDB, and lookupLevelSkillId().
Referenced by ilSkillAppEventListener\handleEvent(), ilTestSkillEvaluation\invokeSkillLevelTrigger(), ilContainerMemberSkills\publish(), ilPersonalSkill\saveSelfEvaluation(), ilSurveySkill\writeAndAddAppraiseeSkills(), ilSurveySkill\writeAndAddSelfEvalSkills(), and ilSurveySkillDeterminationGUI\writeAndAddSkills().
|
protected |
Definition at line 19 of file class.ilBasicSkill.php.
Referenced by __construct().
|
protected |
Definition at line 29 of file class.ilBasicSkill.php.
Referenced by __construct().
|
protected |
Definition at line 24 of file class.ilBasicSkill.php.
Referenced by __construct().
ilBasicSkill::$id |
Definition at line 39 of file class.ilBasicSkill.php.
|
protected |
Definition at line 14 of file class.ilBasicSkill.php.
const ilBasicSkill::ACHIEVED = 1 |
Definition at line 32 of file class.ilBasicSkill.php.
Referenced by ilBasicSkillUserLevelDBRepository\getNewAchievementsPerUser(), ilBasicSkillUserLevelDBRepository\hasRecentSelfEvaluation(), ilTestSkillEvaluation\invokeSkillLevelTrigger(), ilContainerMemberSkills\publish(), ilBasicSkillUserLevelDBRepository\resetUserSkillLevelStatus(), ilPersonalSkill\saveSelfEvaluation(), ilSurveySkill\writeAndAddAppraiseeSkills(), ilSurveySkill\writeAndAddSelfEvalSkills(), ilSurveySkillDeterminationGUI\writeAndAddSkills(), and ilBasicSkillUserLevelDBRepository\writeUserSkillLevelStatus().
const ilBasicSkill::EVAL_BY_ALL = 2 |
Definition at line 37 of file class.ilBasicSkill.php.
Referenced by ilBasicSkillUserLevelDBRepository\getAllHistoricLevelEntriesOfUser(), and ilPersonalSkillsGUI\renderSkillHTML().
const ilBasicSkill::EVAL_BY_OTHERS_ = 0 |
Definition at line 35 of file class.ilBasicSkill.php.
const ilBasicSkill::EVAL_BY_SELF = 1 |
Definition at line 36 of file class.ilBasicSkill.php.
const ilBasicSkill::NOT_ACHIEVED = 0 |
Definition at line 33 of file class.ilBasicSkill.php.