ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilBasicSkill Class Reference

Basic Skill. More...

+ Inheritance diagram for ilBasicSkill:
+ Collaboration diagram for ilBasicSkill:

Public Member Functions

 __construct ($a_id=0)
 Constructor public. More...
 
 read ()
 Read data from database. More...
 
 create ()
 Create skill. More...
 
 delete ()
 Delete skill. More...
 
 copy ()
 Copy basic skill. More...
 
 addLevel ($a_title, $a_description, $a_import_id="")
 Add new level. More...
 
 getMaxLevelNr ()
 Get maximum level nr. More...
 
 getLevelData ($a_id=0)
 Get level data. More...
 
 updateLevelOrder ($order)
 Update level order. More...
 
 deleteLevel ($a_id)
 Delete level. More...
 
 fixLevelNumbering ()
 Fix level numbering. More...
 
 getSkillForLevelId ($a_level_id)
 Get skill for level id. More...
 
 getMaxLevelPerType ($a_tref_id, $a_type, $a_user_id=0, $a_self_eval=0)
 Get max levels per type. More...
 
 getAllLevelEntriesOfUser ($a_tref_id, $a_user_id=0, $a_self_eval=0)
 Get all level entries. More...
 
 getAllHistoricLevelEntriesOfUser ($a_tref_id, $a_user_id=0, $a_eval_by=0)
 Get all historic level entries. More...
 
 getMaxLevelPerObject ($a_tref_id, $a_object_id, $a_user_id=0, $a_self_eval=0)
 Get max levels per object. More...
 
 getLastLevelPerObject ($a_tref_id, $a_object_id, $a_user_id=0, $a_self_eval=0)
 Get last level set per object. More...
 
 getLastUpdatePerObject ($a_tref_id, $a_object_id, $a_user_id=0, $a_self_eval=0)
 Get last update per object. More...
 
 getTitleForCertificate ()
 Get title for certificate. More...
 
 getShortTitleForCertificate ()
 Get short title for certificate. More...
 
- Public Member Functions inherited from ilSkillTreeNode
 __construct ($a_id=0)
 
 setTitle ($a_title)
 Set title. More...
 
 getTitle ()
 Get title. 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 ($a_id)
 Lookup level title. More...
 
static lookupLevelDescription ($a_id)
 Lookup level description. More...
 
static lookupLevelSkillId ($a_id)
 Lookup level skill id. More...
 
static writeLevelTitle ($a_id, $a_title)
 Write level title. More...
 
static writeLevelDescription ($a_id, $a_description)
 Write level description. More...
 
static resetUserSkillLevelStatus ($a_user_id, $a_skill_id, $a_tref_id=0, $a_trigger_ref_id=0, $a_self_eval=false)
 Reset skill level status. More...
 
static writeUserSkillLevelStatus ($a_level_id, $a_user_id, $a_trigger_ref_id, $a_tref_id=0, $a_status=ilBasicSkill::ACHIEVED, $a_force=false, $a_self_eval=false, $a_unique_identifier="")
 Write skill level status. More...
 
static _lookupCertificate ($a_skill_id, $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 ($a_source_inst_id, $a_skill_import_id, $a_tref_import_id=0)
 Get common skill ids for import IDs (newest first) More...
 
static getLevelIdForImportId ($a_source_inst_id, $a_level_import_id)
 Get level ids for import IDs (newest first) More...
 
static getLevelIdForImportIdMatchSkill ($a_source_inst_id, $a_level_import_id, $a_skill_import_id, $a_tref_import_id=0)
 Get level ids for import Ids matching common skills. More...
 
- Static Public Member Functions inherited from ilSkillTreeNode
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 _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 _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
 
- Data Fields inherited from ilSkillTreeNode
const STATUS_PUBLISH = 0
 
const STATUS_DRAFT = 1
 
const STATUS_OUTDATED = 2
 
 $type
 
 $id
 
 $title
 

Static Protected Member Functions

static lookupLevelProperty ($a_id, $a_prop)
 Lookup level property. More...
 
static writeLevelProperty ($a_id, $a_prop, $a_value, $a_type)
 Write level property. More...
 
static hasRecentSelfEvaluation ($a_user_id, $a_skill_id, $a_tref_id=0, $a_trigger_ref_id=0)
 Has recent self evaluation. More...
 
- Static Protected Member Functions inherited from ilSkillTreeNode
static _lookup ($a_obj_id, $a_field)
 Lookup Title. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ilSkillTreeNode
 setCreationDate ($a_val)
 Set creation date. More...
 

Detailed Description

Basic Skill.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 16 of file class.ilBasicSkill.php.

Constructor & Destructor Documentation

◆ __construct()

ilBasicSkill::__construct (   $a_id = 0)

Constructor public.

Definition at line 31 of file class.ilBasicSkill.php.

References ilSkillTreeNode\setType().

32  {
33  parent::__construct($a_id);
34  $this->setType("skll");
35  }
setType($a_type)
Set type.
+ Here is the call graph for this function:

Member Function Documentation

◆ _lookupCertificate()

static ilBasicSkill::_lookupCertificate (   $a_skill_id,
  $a_skill_level_id 
)
static

Checks whether a skill level has a certificate or not.

Parameters
intskill id
intskill level id
Returns
true/false

Definition at line 834 of file class.ilBasicSkill.php.

835  {
836  $certificatefile = CLIENT_WEB_DIR."/certificates/skill/".
837  ((int)$a_skill_id)."/".((int) $a_skill_level_id)."/certificate.xml";
838  if (@file_exists($certificatefile))
839  {
840  return true;
841  }
842  else
843  {
844  return false;
845  }
846  }

◆ addLevel()

ilBasicSkill::addLevel (   $a_title,
  $a_description,
  $a_import_id = "" 
)

Add new level.

Parameters
stringtitle
stringdescription

Definition at line 109 of file class.ilBasicSkill.php.

References $ilDB, array, ilSkillTreeNode\getId(), getMaxLevelNr(), and ilUtil\now().

110  {
111  global $ilDB;
112 
113  $nr = $this->getMaxLevelNr();
114  $nid = $ilDB->nextId("skl_level");
115  $ilDB->insert("skl_level", array(
116  "id" => array("integer", $nid),
117  "skill_id" => array("integer", $this->getId()),
118  "nr" => array("integer", $nr+1),
119  "title" => array("text", $a_title),
120  "description" => array("clob", $a_description),
121  "import_id" => array("text", $a_import_id),
122  "creation_date" => array("timestamp", ilUtil::now())
123  ));
124 
125  }
getMaxLevelNr()
Get maximum level nr.
static now()
Return current timestamp in Y-m-d H:i:s format.
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:

◆ copy()

ilBasicSkill::copy ( )

Copy basic skill.

Definition at line 75 of file class.ilBasicSkill.php.

References getLevelData(), ilSkillTreeNode\getOrderNr(), ilSkillTreeNode\getSelfEvaluation(), ilSkillTreeNode\getTitle(), and ilSkillTreeNode\getType().

76  {
77  $skill = new ilBasicSkill();
78  $skill->setTitle($this->getTitle());
79  $skill->setType($this->getType());
80  $skill->setSelfEvaluation($this->getSelfEvaluation());
81  $skill->setOrderNr($this->getOrderNr());
82  $skill->create();
83 
84  $levels = $this->getLevelData();
85  if (sizeof($levels))
86  {
87  foreach($levels as $item)
88  {
89  $skill->addLevel($item["title"], $item["description"]);
90  }
91  }
92  $skill->update();
93 
94  return $skill;
95  }
getLevelData($a_id=0)
Get level data.
getSelfEvaluation()
Get self evaluation.
getOrderNr()
Get order nr.
Basic Skill.
+ Here is the call graph for this function:

◆ create()

ilBasicSkill::create ( )

Create skill.

Definition at line 49 of file class.ilBasicSkill.php.

50  {
51  parent::create();
52  }

◆ delete()

ilBasicSkill::delete ( )

Delete skill.

Definition at line 57 of file class.ilBasicSkill.php.

References $ilDB.

58  {
59  global $ilDB;
60 
61  $ilDB->manipulate("DELETE FROM skl_level WHERE "
62  ." skill_id = ".$ilDB->quote($this->getId(), "integer")
63  );
64 
65  $ilDB->manipulate("DELETE FROM skl_user_has_level WHERE "
66  ." skill_id = ".$ilDB->quote($this->getId(), "integer")
67  );
68 
69  parent::delete();
70  }
global $ilDB

◆ deleteLevel()

ilBasicSkill::deleteLevel (   $a_id)

Delete level.

Parameters

Definition at line 292 of file class.ilBasicSkill.php.

References $ilDB.

293  {
294  global $ilDB;
295 
296  $ilDB->manipulate("DELETE FROM skl_level WHERE "
297  ." id = ".$ilDB->quote($a_id, "integer")
298  );
299 
300  }
global $ilDB

◆ fixLevelNumbering()

ilBasicSkill::fixLevelNumbering ( )

Fix level numbering.

Parameters

Definition at line 308 of file class.ilBasicSkill.php.

References $ilDB.

309  {
310  global $ilDB;
311 
312  $set = $ilDB->query("SELECT id, nr FROM skl_level WHERE ".
313  " skill_id = ".$ilDB->quote($this->getId(), "integer").
314  " ORDER BY nr ASC"
315  );
316  $cnt = 1;
317  while ($rec = $ilDB->fetchAssoc($set))
318  {
319  $ilDB->manipulate("UPDATE skl_level SET ".
320  " nr = ".$ilDB->quote($cnt, "integer").
321  " WHERE id = ".$ilDB->quote($rec["id"], "integer")
322  );
323  $cnt++;
324  }
325  }
global $ilDB

◆ getAllHistoricLevelEntriesOfUser()

ilBasicSkill::getAllHistoricLevelEntriesOfUser (   $a_tref_id,
  $a_user_id = 0,
  $a_eval_by = 0 
)

Get all historic level entries.

Parameters

Definition at line 672 of file class.ilBasicSkill.php.

References $ilDB, $ilUser, and array.

673  {
674  global $ilDB, $ilUser;
675 
676  if ($a_user_id == 0)
677  {
678  $a_user_id = $ilUser->getId();
679  }
680 
681  $by = ($a_eval_by != self::EVAL_BY_ALL)
682  ? " AND self_eval = ".$ilDB->quote($a_self_eval, "integer")
683  : "";
684 
685  $set = $ilDB->query($q = "SELECT * FROM skl_user_skill_level ".
686  " WHERE skill_id = ".$ilDB->quote($this->getId(), "integer").
687  " AND tref_id = ".$ilDB->quote((int) $a_tref_id, "integer").
688  " AND user_id = ".$ilDB->quote($a_user_id, "integer").
689  $by.
690  " ORDER BY status_date DESC"
691  );
692  $levels = array();
693  while ($rec = $ilDB->fetchAssoc($set))
694  {
695  $levels[] = $rec;
696  }
697  return $levels;
698  }
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
global $ilDB

◆ getAllLevelEntriesOfUser()

ilBasicSkill::getAllLevelEntriesOfUser (   $a_tref_id,
  $a_user_id = 0,
  $a_self_eval = 0 
)

Get all level entries.

Parameters

Definition at line 641 of file class.ilBasicSkill.php.

References $ilDB, $ilUser, and array.

642  {
643  global $ilDB, $ilUser;
644 
645  if ($a_user_id == 0)
646  {
647  $a_user_id = $ilUser->getId();
648  }
649 
650  $set = $ilDB->query($q = "SELECT * FROM skl_user_has_level ".
651  " WHERE skill_id = ".$ilDB->quote($this->getId(), "integer").
652  " AND tref_id = ".$ilDB->quote((int) $a_tref_id, "integer").
653  " AND user_id = ".$ilDB->quote($a_user_id, "integer").
654  " AND self_eval = ".$ilDB->quote($a_self_eval, "integer").
655  " ORDER BY status_date DESC"
656  );
657 
658  $levels = array();
659  while ($rec = $ilDB->fetchAssoc($set))
660  {
661  $levels[] = $rec;
662  }
663  return $levels;
664  }
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
global $ilDB

◆ getCommonSkillIdForImportId()

static ilBasicSkill::getCommonSkillIdForImportId (   $a_source_inst_id,
  $a_skill_import_id,
  $a_tref_import_id = 0 
)
static

Get common skill ids for import IDs (newest first)

Parameters
int$a_source_inst_idsource installation id, must be <>0
int$a_skill_import_idsource skill id (type basic skill ("skll") or basic skill template ("sktp"))
int$a_tref_import_idsource template reference id (if > 0 skill_import_id will be of type "sktp")
Returns
array array of common skill ids, keys are "skill_id", "tref_id", "creation_date"

Definition at line 871 of file class.ilBasicSkill.php.

References $ilDB, $results, $t, ilSkillTemplateReference\_lookupTemplateId(), and array.

Referenced by ilAssQuestionSkillAssignmentImporter\getSkillIdMapping(), ilSurveyDataSet\importRecord(), and ilSkillDataSet\importRecord().

872  {
873  global $ilDB;
874 
875  include_once("./Services/Skill/classes/class.ilSkillTree.php");
876  include_once("./Services/Skill/classes/class.ilSkillTemplateReference.php");
877  $tree = new ilSkillTree();
878 
879  if ($a_source_inst_id == 0)
880  {
881  return array();
882  }
883 
884  $template_ids = array();
885  if ($a_tref_import_id > 0)
886  {
887  $skill_node_type = "sktp";
888 
889  // get all matching tref nodes
890  $set = $ilDB->query("SELECT * FROM skl_tree_node n JOIN skl_tree t ON (n.obj_id = t.child) ".
891  " WHERE n.import_id = ".$ilDB->quote("il_".((int)$a_source_inst_id)."_sktr_".$a_tref_import_id, "text").
892  " ORDER BY n.creation_date DESC ");
893  while ($rec = $ilDB->fetchAssoc($set))
894  {
895  if (($t = ilSkillTemplateReference::_lookupTemplateId($rec["obj_id"])) > 0)
896  {
897  $template_ids[$t] = $rec["obj_id"];
898  }
899  }
900  }
901  else
902  {
903  $skill_node_type = "skll";
904  }
905  $set = $ilDB->query("SELECT * FROM skl_tree_node n JOIN skl_tree t ON (n.obj_id = t.child) ".
906  " WHERE n.import_id = ".$ilDB->quote("il_".((int)$a_source_inst_id)."_".$skill_node_type."_".$a_skill_import_id, "text").
907  " ORDER BY n.creation_date DESC ");
908  $results = array();
909  while ($rec = $ilDB->fetchAssoc($set))
910  {
911  $matching_trefs = array();
912  if ($a_tref_import_id > 0)
913  {
914  $skill_template_id = $tree->getTopParentNodeId($rec["obj_id"]);
915 
916  // check of skill is in template
917  foreach ($template_ids as $templ => $tref)
918  {
919  if ($skill_template_id == $templ)
920  {
921  $matching_trefs[] = $tref;
922  }
923  }
924  }
925  else
926  {
927  $matching_trefs = array(0);
928  }
929 
930  foreach ($matching_trefs as $t)
931  {
932  $results[] = array("skill_id" => $rec["obj_id"], "tref_id" => $t, "creation_date" => $rec["creation_date"]);
933  }
934  }
935  return $results;
936  }
Skill tree.
static _lookupTemplateId($a_obj_id)
Lookup template ID.
$results
Create styles array
The data for the language used.
global $ilDB
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getLastLevelPerObject()

ilBasicSkill::getLastLevelPerObject (   $a_tref_id,
  $a_object_id,
  $a_user_id = 0,
  $a_self_eval = 0 
)

Get last level set per object.

Parameters

Definition at line 746 of file class.ilBasicSkill.php.

References $ilDB, $ilUser, and ilSkillTreeNode\getId().

747  {
748  global $ilDB, $ilUser;
749 
750  if ($a_user_id == 0)
751  {
752  $a_user_id = $ilUser->getId();
753  }
754 
755  $ilDB->setLimit(1);
756  $set = $ilDB->query($q = "SELECT level_id FROM skl_user_has_level ".
757  " WHERE trigger_obj_id = ".$ilDB->quote($a_object_id, "integer").
758  " AND skill_id = ".$ilDB->quote($this->getId(), "integer").
759  " AND tref_id = ".$ilDB->quote((int) $a_tref_id, "integer").
760  " AND user_id = ".$ilDB->quote($a_user_id, "integer").
761  " AND self_eval = ".$ilDB->quote($a_self_eval, "integer").
762  " ORDER BY status_date DESC"
763  );
764 
765  $rec = $ilDB->fetchAssoc($set);
766 
767  return $rec["level_id"];
768  }
$ilUser
Definition: imgupload.php:18
global $ilDB
+ Here is the call graph for this function:

◆ getLastUpdatePerObject()

ilBasicSkill::getLastUpdatePerObject (   $a_tref_id,
  $a_object_id,
  $a_user_id = 0,
  $a_self_eval = 0 
)

Get last update per object.

Parameters

Definition at line 776 of file class.ilBasicSkill.php.

References $ilDB, $ilUser, and ilSkillTreeNode\getId().

777  {
778  global $ilDB, $ilUser;
779 
780  if ($a_user_id == 0)
781  {
782  $a_user_id = $ilUser->getId();
783  }
784 
785  $ilDB->setLimit(1);
786  $set = $ilDB->query($q = "SELECT status_date FROM skl_user_has_level ".
787  " WHERE trigger_obj_id = ".$ilDB->quote($a_object_id, "integer").
788  " AND skill_id = ".$ilDB->quote($this->getId(), "integer").
789  " AND tref_id = ".$ilDB->quote((int) $a_tref_id, "integer").
790  " AND user_id = ".$ilDB->quote($a_user_id, "integer").
791  " AND self_eval = ".$ilDB->quote($a_self_eval, "integer").
792  " ORDER BY status_date DESC"
793  );
794 
795  $rec = $ilDB->fetchAssoc($set);
796 
797  return $rec["status_date"];
798  }
$ilUser
Definition: imgupload.php:18
global $ilDB
+ Here is the call graph for this function:

◆ getLevelData()

ilBasicSkill::getLevelData (   $a_id = 0)

Get level data.

Returns
array level data

Definition at line 148 of file class.ilBasicSkill.php.

References $ilDB, and array.

Referenced by ilBasicSkillTemplate\copy(), copy(), getMaxLevelPerObject(), and getMaxLevelPerType().

149  {
150  global $ilDB;
151 
152  if ($a_id > 0)
153  {
154  $and = " AND id = ".$ilDB->quote($a_id, "integer");
155  }
156 
157  $set = $ilDB->query("SELECT * FROM skl_level WHERE ".
158  " skill_id = ".$ilDB->quote($this->getId(), "integer").
159  $and.
160  " ORDER BY nr"
161  );
162  $levels = array();
163  while ($rec = $ilDB->fetchAssoc($set))
164  {
165  if ($a_id > 0)
166  {
167  return $rec;
168  }
169  $levels[] = $rec;
170  }
171  return $levels;
172  }
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ getLevelIdForImportId()

static ilBasicSkill::getLevelIdForImportId (   $a_source_inst_id,
  $a_level_import_id 
)
static

Get level ids for import IDs (newest first)

Parameters
int$a_source_inst_idsource installation id, must be <>0
int$a_skill_import_idsource skill id (type basic skill ("skll") or basic skill template ("sktp"))
Returns
array array of common skill ids, keys are "level_id", "creation_date"

Definition at line 945 of file class.ilBasicSkill.php.

References $ilDB, $results, and array.

Referenced by ilTestSkillLevelThresholdImporter\getLevelIdMapping(), and ilSkillDataSet\importRecord().

946  {
947  global $ilDB;
948 
949  $set = $ilDB->query("SELECT * FROM skl_level l JOIN skl_tree t ON (l.skill_id = t.child) " .
950  " WHERE l.import_id = " . $ilDB->quote("il_" . ((int)$a_source_inst_id) . "_sklv_" . $a_level_import_id, "text") .
951  " ORDER BY l.creation_date DESC ");
952  $results = array();
953  while ($rec = $ilDB->fetchAssoc($set))
954  {
955  $results[] = array("level_id" => $rec["id"], "creation_date" => $rec["creation_date"]);
956  }
957  return $results;
958  }
$results
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ getLevelIdForImportIdMatchSkill()

static ilBasicSkill::getLevelIdForImportIdMatchSkill (   $a_source_inst_id,
  $a_level_import_id,
  $a_skill_import_id,
  $a_tref_import_id = 0 
)
static

Get level ids for import Ids matching common skills.

Parameters

Definition at line 966 of file class.ilBasicSkill.php.

References $l, array, and lookupLevelSkillId().

Referenced by ilSurveyDataSet\importRecord().

967  {
968  $level_id_data = self::getLevelIdForImportId($a_source_inst_id, $a_level_import_id);
969  $skill_data = self::getCommonSkillIdForImportId($a_source_inst_id, $a_skill_import_id, $a_tref_import_id);
970  $matches = array();
971  foreach($level_id_data as $l)
972  {
973  reset($skill_data);
974  foreach ($skill_data as $s)
975  {
976  if (ilBasicSkill::lookupLevelSkillId($l["level_id"]) == $s["skill_id"])
977  {
978  $matches[] = array(
979  "level_id" => $l["level_id"],
980  "creation_date" => $l["creation_date"],
981  "skill_id" => $s["skill_id"],
982  "tref_id" => $s["tref_id"]
983  );
984  }
985  }
986  }
987  return $matches;
988  }
Create styles array
The data for the language used.
global $l
Definition: afr.php:30
static lookupLevelSkillId($a_id)
Lookup level skill id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMaxLevelNr()

ilBasicSkill::getMaxLevelNr ( )

Get maximum level nr.

Returns
int maximum level nr of skill

Definition at line 132 of file class.ilBasicSkill.php.

References $ilDB.

Referenced by addLevel().

133  {
134  global $ilDB;
135 
136  $set = $ilDB->query("SELECT MAX(nr) mnr FROM skl_level WHERE ".
137  " skill_id = ".$ilDB->quote($this->getId(), "integer")
138  );
139  $rec = $ilDB->fetchAssoc($set);
140  return (int) $rec["mnr"];
141  }
global $ilDB
+ Here is the caller graph for this function:

◆ getMaxLevelPerObject()

ilBasicSkill::getMaxLevelPerObject (   $a_tref_id,
  $a_object_id,
  $a_user_id = 0,
  $a_self_eval = 0 
)

Get max levels per object.

Parameters

Definition at line 707 of file class.ilBasicSkill.php.

References $ilDB, $ilUser, $l, array, ilSkillTreeNode\getId(), and getLevelData().

708  {
709  global $ilDB, $ilUser;
710 
711  if ($a_user_id == 0)
712  {
713  $a_user_id = $ilUser->getId();
714  }
715 
716  $set = $ilDB->query($q = "SELECT level_id FROM skl_user_has_level ".
717  " WHERE trigger_obj_id = ".$ilDB->quote($a_object_id, "integer").
718  " AND skill_id = ".$ilDB->quote($this->getId(), "integer").
719  " AND tref_id = ".$ilDB->quote((int) $a_tref_id, "integer").
720  " AND user_id = ".$ilDB->quote($a_user_id, "integer").
721  " AND self_eval = ".$ilDB->quote($a_self_eval, "integer")
722  );
723 
724  $has_level = array();
725  while ($rec = $ilDB->fetchAssoc($set))
726  {
727  $has_level[$rec["level_id"]] = true;
728  }
729  $max_level = 0;
730  foreach ($this->getLevelData() as $l)
731  {
732  if (isset($has_level[$l["id"]]))
733  {
734  $max_level = $l["id"];
735  }
736  }
737  return $max_level;
738  }
getLevelData($a_id=0)
Get level data.
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
global $l
Definition: afr.php:30
global $ilDB
+ Here is the call graph for this function:

◆ getMaxLevelPerType()

ilBasicSkill::getMaxLevelPerType (   $a_tref_id,
  $a_type,
  $a_user_id = 0,
  $a_self_eval = 0 
)

Get max levels per type.

Parameters

Definition at line 602 of file class.ilBasicSkill.php.

References $a_type, $ilDB, $ilUser, $l, array, ilSkillTreeNode\getId(), and getLevelData().

603  {
604  global $ilDB, $ilUser;
605 
606  if ($a_user_id == 0)
607  {
608  $a_user_id = $ilUser->getId();
609  }
610 
611  $set = $ilDB->query($q = "SELECT level_id FROM skl_user_has_level ".
612  " WHERE trigger_obj_type = ".$ilDB->quote($a_type, "text").
613  " AND skill_id = ".$ilDB->quote($this->getId(), "integer").
614  " AND tref_id = ".$ilDB->quote((int) $a_tref_id, "integer").
615  " AND user_id = ".$ilDB->quote($a_user_id, "integer").
616  " AND self_eval = ".$ilDB->quote($a_self_eval, "integer")
617  );
618 
619  $has_level = array();
620  while ($rec = $ilDB->fetchAssoc($set))
621  {
622  $has_level[$rec["level_id"]] = true;
623  }
624  $max_level = 0;
625  foreach ($this->getLevelData() as $l)
626  {
627  if (isset($has_level[$l["id"]]))
628  {
629  $max_level = $l["id"];
630  }
631  }
632  return $max_level;
633  }
getLevelData($a_id=0)
Get level data.
$a_type
Definition: workflow.php:93
$ilUser
Definition: imgupload.php:18
Create styles array
The data for the language used.
global $l
Definition: afr.php:30
global $ilDB
+ Here is the call graph for this function:

◆ getShortTitleForCertificate()

ilBasicSkill::getShortTitleForCertificate ( )

Get short title for certificate.

Parameters

Definition at line 823 of file class.ilBasicSkill.php.

824  {
825  return "Skill";
826  }

◆ getSkillForLevelId()

ilBasicSkill::getSkillForLevelId (   $a_level_id)

Get skill for level id.

Parameters

Definition at line 333 of file class.ilBasicSkill.php.

References $ilDB, and ilSkillTreeNode\isInTree().

334  {
335  global $ilDB;
336 
337  $set = $ilDB->query("SELECT * FROM skl_level WHERE ".
338  " id = ".$ilDB->quote($a_level_id, "integer")
339  );
340  $skill = null;
341  if ($rec = $ilDB->fetchAssoc($set))
342  {
343  if (ilSkillTreeNode::isInTree($rec["skill_id"]))
344  {
345  $skill = new ilBasicSkill($rec["skill_id"]);
346  }
347  }
348  return $skill;
349  }
static isInTree($a_id)
Is id in tree?
global $ilDB
Basic Skill.
+ Here is the call graph for this function:

◆ getTitleForCertificate()

ilBasicSkill::getTitleForCertificate ( )

Get title for certificate.

Parameters

Definition at line 812 of file class.ilBasicSkill.php.

References ilSkillTreeNode\getTitle().

813  {
814  return $this->getTitle();
815  }
+ Here is the call graph for this function:

◆ getUsageInfo()

static ilBasicSkill::getUsageInfo (   $a_cskill_ids,
$a_usages 
)
static

Get usage info.

Parameters

Implements ilSkillUsageInfo.

Definition at line 854 of file class.ilBasicSkill.php.

References $ilDB, ilSkillUsage\getUsageInfoGeneric(), and ilSkillUsage\USER_ASSIGNED.

855  {
856  global $ilDB;
857 
858  include_once("./Services/Skill/classes/class.ilSkillUsage.php");
860  "skl_user_skill_level", "user_id");
861  }
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.
global $ilDB
+ Here is the call graph for this function:

◆ hasRecentSelfEvaluation()

static ilBasicSkill::hasRecentSelfEvaluation (   $a_user_id,
  $a_skill_id,
  $a_tref_id = 0,
  $a_trigger_ref_id = 0 
)
staticprotected

Has recent self evaluation.

Check if self evaluation for user/object has been done on the same day already

Parameters

Definition at line 448 of file class.ilBasicSkill.php.

References $DIC, ilObject\_lookupObjId(), ACHIEVED, and ilUtil\now().

449  {
450  global $DIC;
451 
452  $db = $DIC->database();
453 
454  $trigger_obj_id = ($a_trigger_ref_id > 0)
455  ? ilObject::_lookupObjId($a_trigger_ref_id)
456  : 0;
457 
458  $recent = "";
459 
460  $db->setLimit(1);
461  $set = $db->query("SELECT * FROM skl_user_skill_level WHERE ".
462  "skill_id = ".$db->quote($a_skill_id, "integer")." AND ".
463  "user_id = ".$db->quote($a_user_id, "integer")." AND ".
464  "tref_id = ".$db->quote((int) $a_tref_id, "integer")." AND ".
465  "trigger_obj_id = ".$db->quote($trigger_obj_id, "integer")." AND ".
466  "self_eval = ".$db->quote(1, "integer").
467  " ORDER BY status_date DESC"
468  );
469  $rec = $db->fetchAssoc($set);
470  $status_day = substr($rec["status_date"], 0, 10);
471  $today = substr(ilUtil::now(), 0, 10);
472  if ($rec["valid"] && $rec["status"] == ilBasicSkill::ACHIEVED && $status_day == $today)
473  {
474  $recent = $rec["status_date"];
475  }
476 
477  return $recent;
478  }
static now()
Return current timestamp in Y-m-d H:i:s format.
static _lookupObjId($a_id)
global $DIC
+ Here is the call graph for this function:

◆ lookupLevelDescription()

static ilBasicSkill::lookupLevelDescription (   $a_id)
static

Lookup level description.

Parameters
intlevel id
Returns
string level description

Definition at line 208 of file class.ilBasicSkill.php.

References lookupLevelProperty().

209  {
210  return ilBasicSkill::lookupLevelProperty($a_id, "description");
211  }
static lookupLevelProperty($a_id, $a_prop)
Lookup level property.
+ Here is the call graph for this function:

◆ lookupLevelProperty()

static ilBasicSkill::lookupLevelProperty (   $a_id,
  $a_prop 
)
staticprotected

Lookup level property.

Parameters
idlevel id
Returns
mixed property value

Definition at line 180 of file class.ilBasicSkill.php.

References $ilDB.

Referenced by lookupLevelDescription(), lookupLevelSkillId(), and lookupLevelTitle().

181  {
182  global $ilDB;
183 
184  $set = $ilDB->query("SELECT $a_prop FROM skl_level WHERE ".
185  " id = ".$ilDB->quote($a_id, "integer")
186  );
187  $rec = $ilDB->fetchAssoc($set);
188  return $rec[$a_prop];
189  }
global $ilDB
+ Here is the caller graph for this function:

◆ lookupLevelSkillId()

static ilBasicSkill::lookupLevelSkillId (   $a_id)
static

Lookup level skill id.

Parameters
intlevel id
Returns
string skill id

Definition at line 219 of file class.ilBasicSkill.php.

References lookupLevelProperty().

Referenced by getLevelIdForImportIdMatchSkill(), ilSkillDataSet\importRecord(), and writeUserSkillLevelStatus().

220  {
221  return ilBasicSkill::lookupLevelProperty($a_id, "skill_id");
222  }
static lookupLevelProperty($a_id, $a_prop)
Lookup level property.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lookupLevelTitle()

static ilBasicSkill::lookupLevelTitle (   $a_id)
static

Lookup level title.

Parameters
intlevel id
Returns
string level title

Definition at line 197 of file class.ilBasicSkill.php.

References lookupLevelProperty().

Referenced by ilSkillProfileGUI\confirmLevelAssignmentRemoval(), ilBasicSkillGUI\confirmLevelDeletion(), ilSkillProfileLevelsTableGUI\fillRow(), ilPersonalSkillsGUI\renderSuggestedResources(), ilBasicSkillTemplateGUI\setLevelHead(), and ilBasicSkillGUI\setLevelHead().

198  {
199  return ilBasicSkill::lookupLevelProperty($a_id, "title");
200  }
static lookupLevelProperty($a_id, $a_prop)
Lookup level property.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ read()

ilBasicSkill::read ( )

Read data from database.

Definition at line 40 of file class.ilBasicSkill.php.

41  {
42  parent::read();
43  }

◆ resetUserSkillLevelStatus()

static ilBasicSkill::resetUserSkillLevelStatus (   $a_user_id,
  $a_skill_id,
  $a_tref_id = 0,
  $a_trigger_ref_id = 0,
  $a_self_eval = false 
)
static

Reset skill level status.

This is currently only used for self evaluations with a "no competence" level. It has to be discussed, how this should be provided for non-self-evaluations.

Parameters
int$a_user_iduser id
int$a_skill_idskill id
int$a_tref_idskill tref id
int$a_trigger_ref_idtriggering repository object ref id
bool$a_self_evalcurrently needs to be set to true
Exceptions
ilSkillException

Definition at line 370 of file class.ilBasicSkill.php.

References $DIC, ilObject\_lookupObjId(), and ilUtil\now().

Referenced by ilPersonalSkill\saveSelfEvaluation().

371  {
372  global $DIC;
373 
374  $db = $DIC->database();
375 
376  if (!$a_self_eval)
377  {
378  include_once("./Services/Skill/exceptions/class.ilSkillException.php");
379  throw new ilSkillException("resetUserSkillLevelStatus currently only provided for self evaluations.");
380  }
381 
382  $trigger_obj_id = ($a_trigger_ref_id > 0)
383  ? ilObject::_lookupObjId($a_trigger_ref_id)
384  : 0;
385 
386  $update = false;
387  $status_date = self::hasRecentSelfEvaluation($a_user_id, $a_skill_id, $a_tref_id, $a_trigger_ref_id);
388  if ($status_date != "")
389  {
390  $update = true;
391  }
392 
393  if ($update)
394  {
395  // this will only be set in self eval case, means this will always have a $rec
396  $now = ilUtil::now();
397  $db->manipulate("UPDATE skl_user_skill_level SET ".
398  " level_id = ".$db->quote(0, "integer").",".
399  " status_date = ".$db->quote($now, "timestamp").
400  " WHERE user_id = ".$db->quote($a_user_id, "integer").
401  " AND status_date = ".$db->quote($status_date, "timestamp").
402  " AND skill_id = ".$db->quote($a_skill_id, "integer").
403  " AND status = ".$db->quote(self::ACHIEVED, "integer").
404  " AND trigger_obj_id = ".$db->quote($trigger_obj_id, "integer").
405  " AND tref_id = ".$db->quote((int) $a_tref_id, "integer").
406  " AND self_eval = ".$db->quote($a_self_eval, "integer")
407  );
408  }
409  else
410  {
411  $now = ilUtil::now();
412  $db->manipulate("INSERT INTO skl_user_skill_level ".
413  "(level_id, user_id, tref_id, status_date, skill_id, status, valid, trigger_ref_id,".
414  "trigger_obj_id, trigger_obj_type, trigger_title, self_eval, unique_identifier) VALUES (".
415  $db->quote(0, "integer").",".
416  $db->quote($a_user_id, "integer").",".
417  $db->quote((int) $a_tref_id, "integer").",".
418  $db->quote($now, "timestamp").",".
419  $db->quote($a_skill_id, "integer").",".
420  $db->quote(self::ACHIEVED, "integer").",".
421  $db->quote(1, "integer").",".
422  $db->quote($a_trigger_ref_id, "integer").",".
423  $db->quote($trigger_obj_id, "integer").",".
424  $db->quote("", "text").",".
425  $db->quote("", "text").",".
426  $db->quote($a_self_eval, "integer").",".
427  $db->quote("", "text").
428  ")");
429  }
430 
431  $db->manipulate("DELETE FROM skl_user_has_level WHERE "
432  ." user_id = ".$db->quote($a_user_id, "integer")
433  ." AND skill_id = ".$db->quote($a_skill_id, "integer")
434  ." AND tref_id = ".$db->quote((int) $a_tref_id, "integer")
435  ." AND trigger_obj_id = ".$db->quote($trigger_obj_id, "integer")
436  ." AND self_eval = ".$db->quote($a_self_eval, "integer")
437  );
438 
439  }
static now()
Return current timestamp in Y-m-d H:i:s format.
static _lookupObjId($a_id)
Skill exception class.
global $DIC
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateLevelOrder()

ilBasicSkill::updateLevelOrder (   $order)

Update level order.

Parameters

Definition at line 269 of file class.ilBasicSkill.php.

References $ilDB.

270  {
271  global $ilDB;
272 
273  asort($order);
274 
275  $cnt = 1;
276  foreach ($order as $id => $o)
277  {
278  $ilDB->manipulate("UPDATE skl_level SET ".
279  " nr = ".$ilDB->quote($cnt, "integer").
280  " WHERE id = ".$ilDB->quote($id, "integer")
281  );
282  $cnt++;
283  }
284  }
global $ilDB

◆ writeLevelDescription()

static ilBasicSkill::writeLevelDescription (   $a_id,
  $a_description 
)
static

Write level description.

Parameters
intlevel id
textlevel description

Definition at line 258 of file class.ilBasicSkill.php.

References writeLevelProperty().

259  {
260  ilBasicSkill::writeLevelProperty($a_id, "description", $a_description, "clob");
261  }
static writeLevelProperty($a_id, $a_prop, $a_value, $a_type)
Write level property.
+ Here is the call graph for this function:

◆ writeLevelProperty()

static ilBasicSkill::writeLevelProperty (   $a_id,
  $a_prop,
  $a_value,
  $a_type 
)
staticprotected

Write level property.

Parameters

Definition at line 230 of file class.ilBasicSkill.php.

References $a_type, $ilDB, and array.

Referenced by writeLevelDescription(), and writeLevelTitle().

231  {
232  global $ilDB;
233 
234  $ilDB->update("skl_level", array(
235  $a_prop => array($a_type, $a_value),
236  ), array(
237  "id" => array("integer", $a_id),
238  ));
239  }
$a_type
Definition: workflow.php:93
Create styles array
The data for the language used.
global $ilDB
+ Here is the caller graph for this function:

◆ writeLevelTitle()

static ilBasicSkill::writeLevelTitle (   $a_id,
  $a_title 
)
static

Write level title.

Parameters
intlevel id
textlevel title

Definition at line 247 of file class.ilBasicSkill.php.

References writeLevelProperty().

248  {
249  ilBasicSkill::writeLevelProperty($a_id, "title", $a_title, "text");
250  }
static writeLevelProperty($a_id, $a_prop, $a_value, $a_type)
Write level property.
+ Here is the call graph for this function:

◆ writeUserSkillLevelStatus()

static ilBasicSkill::writeUserSkillLevelStatus (   $a_level_id,
  $a_user_id,
  $a_trigger_ref_id,
  $a_tref_id = 0,
  $a_status = ilBasicSkill::ACHIEVED,
  $a_force = false,
  $a_self_eval = false,
  $a_unique_identifier = "" 
)
static

Write skill level status.

Parameters
int$a_level_idskill level id
int$a_user_iduser id
int$a_trigger_ref_idtrigger repository object ref id
int$a_tref_idskill tref id
int$a_statusDEPRECATED, always use ilBasicSkill::ACHIEVED
bool$a_forceDEPRECATED
bool$a_self_evalself evaluation
string$a_unique_identifiera unique identifier (should be used with trigger_ref_id > 0)

Definition at line 493 of file class.ilBasicSkill.php.

References $ilDB, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ACHIEVED, lookupLevelSkillId(), and ilUtil\now().

Referenced by ilTestSkillEvaluation\invokeSkillLevelTrigger(), ilPersonalSkill\saveSelfEvaluation(), ilSurveySkill\writeAppraiseeSkills(), and ilSurveySkillDeterminationGUI\writeSkills().

496  {
497  global $ilDB;
498 
499  $skill_id = ilBasicSkill::lookupLevelSkillId($a_level_id);
500  $trigger_ref_id = $a_trigger_ref_id;
501  $trigger_obj_id = ilObject::_lookupObjId($trigger_ref_id);
502  $trigger_title = ilObject::_lookupTitle($trigger_obj_id);
503  $trigger_type = ilObject::_lookupType($trigger_obj_id);
504 
505  $update = false;
506 
507  // self evaluations will update, if the last self evaluation is on the same day
508  if ($a_self_eval && self::hasRecentSelfEvaluation($a_user_id, $skill_id, $a_tref_id, $trigger_ref_id))
509  {
510  $status_date = self::hasRecentSelfEvaluation($a_user_id, $skill_id, $a_tref_id, $trigger_ref_id);
511  if ($status_date != "")
512  {
513  $update = true;
514  }
515  }
516 
517  if ($update)
518  {
519  // this will only be set in self eval case, means this will always have a $rec
520  $now = ilUtil::now();
521  $ilDB->manipulate("UPDATE skl_user_skill_level SET ".
522  " level_id = ".$ilDB->quote($a_level_id, "integer").",".
523  " status_date = ".$ilDB->quote($now, "timestamp").
524  " WHERE user_id = ".$ilDB->quote($a_user_id, "integer").
525  " AND status_date = ".$ilDB->quote($status_date, "timestamp").
526  " AND skill_id = ".$ilDB->quote($skill_id, "integer").
527  " AND status = ".$ilDB->quote($a_status, "integer").
528  " AND trigger_obj_id = ".$ilDB->quote($trigger_obj_id, "integer").
529  " AND tref_id = ".$ilDB->quote((int) $a_tref_id, "integer").
530  " AND self_eval = ".$ilDB->quote($a_self_eval, "integer")
531  );
532  }
533  else
534  {
535  if ($a_unique_identifier != "")
536  {
537  $ilDB->manipulate("DELETE FROM skl_user_skill_level WHERE ".
538  " user_id = ".$ilDB->quote($a_user_id, "integer").
539  " AND tref_id = ".$ilDB->quote($a_tref_id, "integer").
540  " AND skill_id = ".$ilDB->quote($skill_id, "integer").
541  " AND trigger_ref_id = ".$ilDB->quote($trigger_ref_id, "integer").
542  " AND trigger_obj_id = ".$ilDB->quote($trigger_obj_id, "integer").
543  " AND self_eval = ".$ilDB->quote($a_self_eval, "integer").
544  " AND unique_identifier = ".$ilDB->quote($a_unique_identifier, "text")
545  );
546  }
547 
548  $now = ilUtil::now();
549  $ilDB->manipulate("INSERT INTO skl_user_skill_level ".
550  "(level_id, user_id, tref_id, status_date, skill_id, status, valid, trigger_ref_id,".
551  "trigger_obj_id, trigger_obj_type, trigger_title, self_eval, unique_identifier) VALUES (".
552  $ilDB->quote($a_level_id, "integer").",".
553  $ilDB->quote($a_user_id, "integer").",".
554  $ilDB->quote((int) $a_tref_id, "integer").",".
555  $ilDB->quote($now, "timestamp").",".
556  $ilDB->quote($skill_id, "integer").",".
557  $ilDB->quote($a_status, "integer").",".
558  $ilDB->quote(1, "integer").",".
559  $ilDB->quote($trigger_ref_id, "integer").",".
560  $ilDB->quote($trigger_obj_id, "integer").",".
561  $ilDB->quote($trigger_type, "text").",".
562  $ilDB->quote($trigger_title, "text").",".
563  $ilDB->quote($a_self_eval, "integer").",".
564  $ilDB->quote($a_unique_identifier, "text").
565  ")");
566  }
567 
568  // fix (removed level_id and added skill id, since table should hold only
569  // one entry per skill)
570  $ilDB->manipulate("DELETE FROM skl_user_has_level WHERE "
571  ." user_id = ".$ilDB->quote($a_user_id, "integer")
572  ." AND skill_id = ".$ilDB->quote($skill_id, "integer")
573  ." AND tref_id = ".$ilDB->quote((int) $a_tref_id, "integer")
574  ." AND trigger_obj_id = ".$ilDB->quote($trigger_obj_id, "integer")
575  ." AND self_eval = ".$ilDB->quote($a_self_eval, "integer")
576  );
577 
578  if ($a_status == ilBasicSkill::ACHIEVED)
579  {
580  $ilDB->manipulate("INSERT INTO skl_user_has_level ".
581  "(level_id, user_id, tref_id, status_date, skill_id, trigger_ref_id, trigger_obj_id, trigger_obj_type, trigger_title, self_eval) VALUES (".
582  $ilDB->quote($a_level_id, "integer").",".
583  $ilDB->quote($a_user_id, "integer").",".
584  $ilDB->quote($a_tref_id, "integer").",".
585  $ilDB->quote($now, "timestamp").",".
586  $ilDB->quote($skill_id, "integer").",".
587  $ilDB->quote($trigger_ref_id, "integer").",".
588  $ilDB->quote($trigger_obj_id, "integer").",".
589  $ilDB->quote($trigger_type, "text").",".
590  $ilDB->quote($trigger_title, "text").",".
591  $ilDB->quote($a_self_eval, "integer").
592  ")");
593  }
594  }
static _lookupTitle($a_id)
lookup object title
static now()
Return current timestamp in Y-m-d H:i:s format.
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
global $ilDB
static lookupLevelSkillId($a_id)
Lookup level skill id.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $id

ilBasicSkill::$id

Definition at line 25 of file class.ilBasicSkill.php.

◆ ACHIEVED

◆ EVAL_BY_ALL

const ilBasicSkill::EVAL_BY_ALL = 2

Definition at line 23 of file class.ilBasicSkill.php.

Referenced by ilPersonalSkillsGUI\renderSkillHTML().

◆ EVAL_BY_OTHERS_

const ilBasicSkill::EVAL_BY_OTHERS_ = 0

Definition at line 21 of file class.ilBasicSkill.php.

◆ EVAL_BY_SELF

const ilBasicSkill::EVAL_BY_SELF = 1

Definition at line 22 of file class.ilBasicSkill.php.

◆ NOT_ACHIEVED

const ilBasicSkill::NOT_ACHIEVED = 0

Definition at line 19 of file class.ilBasicSkill.php.


The documentation for this class was generated from the following file: