ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Self evaluation application class. More...
Public Member Functions | |
__construct ($a_id=0) | |
Constructor. More... | |
setId ($a_val) | |
Set id. More... | |
getId () | |
Get id. More... | |
setUserId ($a_val) | |
Set user id. More... | |
getUserId () | |
Get user id. More... | |
setTopSkillId ($a_val) | |
Set top skill id. More... | |
getTopSkillId () | |
Get top skill id. More... | |
setCreated ($a_val) | |
Set created at. More... | |
getCreated () | |
Get created at. More... | |
setLastUpdate ($a_val) | |
Set last update. More... | |
getLastUpdate () | |
Get last update. More... | |
setLevels ($a_val, $a_keep_existing=false) | |
Set level. More... | |
getLevels () | |
Get level. More... | |
read () | |
Read. More... | |
create () | |
Create self evaluation. More... | |
update () | |
Update self evaluation. More... | |
delete () | |
Delete self evaluation. More... | |
Static Public Member Functions | |
static | getAllSelfEvaluationsOfUser ($a_user, $a_one_per_top_skill=false) |
Get all self evaluations. More... | |
static | getAverageLevel ($a_se_id, $a_user_id, $a_top_skill_id) |
Get average level of user self evaluation. More... | |
static | determineSteps ($a_sn_id) |
Determine steps. More... | |
Static Protected Member Functions | |
static | lookupProperty ($a_id, $a_prop) |
Lookup property. More... | |
Protected Attributes | |
$db | |
Self evaluation application class.
Definition at line 12 of file class.ilSkillSelfEvaluation.php.
ilSkillSelfEvaluation::__construct | ( | $a_id = 0 | ) |
Constructor.
Definition at line 24 of file class.ilSkillSelfEvaluation.php.
References $DIC, read(), and setId().
ilSkillSelfEvaluation::create | ( | ) |
Create self evaluation.
Definition at line 199 of file class.ilSkillSelfEvaluation.php.
References $db, $ilDB, getLevels(), and setId().
ilSkillSelfEvaluation::delete | ( | ) |
|
static |
Determine steps.
Definition at line 389 of file class.ilSkillSelfEvaluation.php.
Referenced by ilSkillSelfEvaluationGUI\saveSelfEvaluation(), ilSkillSelfEvaluationGUI\startSelfEvaluation(), and ilSkillSelfEvaluationGUI\updateSelfEvaluation().
|
static |
Get all self evaluations.
Definition at line 281 of file class.ilSkillSelfEvaluation.php.
References $DIC, $ilDB, and array.
Referenced by ilSelfEvaluationTableGUI\__construct(), and ilSkillSelfEvaluationGUI\getPresentationView().
|
static |
Get average level of user self evaluation.
Note: this method does not make much sense in general, since it assumes that all basic skills have the same level
Definition at line 332 of file class.ilSkillSelfEvaluation.php.
References $DIC, $l, $lng, and array.
ilSkillSelfEvaluation::getCreated | ( | ) |
Get created at.
Definition at line 110 of file class.ilSkillSelfEvaluation.php.
ilSkillSelfEvaluation::getId | ( | ) |
Get id.
Definition at line 50 of file class.ilSkillSelfEvaluation.php.
References $id.
Referenced by update().
ilSkillSelfEvaluation::getLastUpdate | ( | ) |
Get last update.
Definition at line 130 of file class.ilSkillSelfEvaluation.php.
ilSkillSelfEvaluation::getLevels | ( | ) |
Get level.
Definition at line 158 of file class.ilSkillSelfEvaluation.php.
Referenced by create(), and update().
ilSkillSelfEvaluation::getTopSkillId | ( | ) |
Get top skill id.
Definition at line 90 of file class.ilSkillSelfEvaluation.php.
ilSkillSelfEvaluation::getUserId | ( | ) |
|
staticprotected |
Lookup property.
id | level id |
Definition at line 312 of file class.ilSkillSelfEvaluation.php.
ilSkillSelfEvaluation::read | ( | ) |
Read.
Definition at line 169 of file class.ilSkillSelfEvaluation.php.
References $db, $ilDB, array, setCreated(), setLastUpdate(), setLevels(), setTopSkillId(), and setUserId().
Referenced by __construct().
ilSkillSelfEvaluation::setCreated | ( | $a_val | ) |
Set created at.
timestamp | created at |
Definition at line 100 of file class.ilSkillSelfEvaluation.php.
Referenced by read().
ilSkillSelfEvaluation::setId | ( | $a_val | ) |
Set id.
integer | id |
Definition at line 40 of file class.ilSkillSelfEvaluation.php.
Referenced by __construct(), and create().
ilSkillSelfEvaluation::setLastUpdate | ( | $a_val | ) |
Set last update.
timestamp | last update |
Definition at line 120 of file class.ilSkillSelfEvaluation.php.
Referenced by read().
ilSkillSelfEvaluation::setLevels | ( | $a_val, | |
$a_keep_existing = false |
|||
) |
Set level.
array | level; index: skill id, value: level id (or 0 for no skills) |
Definition at line 140 of file class.ilSkillSelfEvaluation.php.
References levels.
Referenced by read().
ilSkillSelfEvaluation::setTopSkillId | ( | $a_val | ) |
Set top skill id.
integer | top skill id |
Definition at line 80 of file class.ilSkillSelfEvaluation.php.
Referenced by read().
ilSkillSelfEvaluation::setUserId | ( | $a_val | ) |
Set user id.
integer | user id |
Definition at line 60 of file class.ilSkillSelfEvaluation.php.
Referenced by read().
ilSkillSelfEvaluation::update | ( | ) |
Update self evaluation.
Definition at line 230 of file class.ilSkillSelfEvaluation.php.
References $db, $ilDB, getId(), and getLevels().
|
protected |