ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilBasicSkillLevelDBRepository. More...
Public Member Functions | |
__construct (ilDBInterface $db=null) | |
deleteLevelsOfSkill (int $skill_id) | |
addLevel (int $skill_id, string $a_title, string $a_description, string $a_import_id="") | |
getLevelData (int $skill_id, int $a_id=0) | |
lookupLevelTitle (int $a_id) | |
lookupLevelDescription (int $a_id) | |
lookupLevelSkillId (int $a_id) | |
writeLevelTitle (int $a_id, string $a_title) | |
writeLevelDescription (int $a_id, string $a_description) | |
updateLevelOrder (array $order) | |
deleteLevel (int $a_id) | |
fixLevelNumbering (int $skill_id) | |
getSkillForLevelId (int $a_level_id) | |
Protected Member Functions | |
getMaxLevelNr (int $skill_id) | |
Get maximum level nr. More... | |
lookupLevelProperty (int $a_id, string $a_prop) | |
Lookup level property. More... | |
writeLevelProperty (int $a_id, string $a_prop, $a_value, string $a_type) | |
Write level property. More... | |
Protected Attributes | |
$db | |
Class ilBasicSkillLevelDBRepository.
Definition at line 6 of file class.ilBasicSkillLevelDBRepository.php.
ilBasicSkillLevelDBRepository::__construct | ( | ilDBInterface | $db = null | ) |
Definition at line 13 of file class.ilBasicSkillLevelDBRepository.php.
ilBasicSkillLevelDBRepository::addLevel | ( | int | $skill_id, |
string | $a_title, | ||
string | $a_description, | ||
string | $a_import_id = "" |
||
) |
Implements ilBasicSkillLevelRepository.
Definition at line 37 of file class.ilBasicSkillLevelDBRepository.php.
References $db, $ilDB, getMaxLevelNr(), and ilUtil\now().
ilBasicSkillLevelDBRepository::deleteLevel | ( | int | $a_id | ) |
Implements ilBasicSkillLevelRepository.
Definition at line 191 of file class.ilBasicSkillLevelDBRepository.php.
ilBasicSkillLevelDBRepository::deleteLevelsOfSkill | ( | int | $skill_id | ) |
Implements ilBasicSkillLevelRepository.
Definition at line 25 of file class.ilBasicSkillLevelDBRepository.php.
ilBasicSkillLevelDBRepository::fixLevelNumbering | ( | int | $skill_id | ) |
Implements ilBasicSkillLevelRepository.
Definition at line 204 of file class.ilBasicSkillLevelDBRepository.php.
ilBasicSkillLevelDBRepository::getLevelData | ( | int | $skill_id, |
int | $a_id = 0 |
||
) |
Implements ilBasicSkillLevelRepository.
Definition at line 73 of file class.ilBasicSkillLevelDBRepository.php.
|
protected |
Get maximum level nr.
Definition at line 59 of file class.ilBasicSkillLevelDBRepository.php.
Referenced by addLevel().
ilBasicSkillLevelDBRepository::getSkillForLevelId | ( | int | $a_level_id | ) |
Implements ilBasicSkillLevelRepository.
Definition at line 225 of file class.ilBasicSkillLevelDBRepository.php.
References $db, $ilDB, and ilSkillTreeNode\isInTree().
ilBasicSkillLevelDBRepository::lookupLevelDescription | ( | int | $a_id | ) |
Implements ilBasicSkillLevelRepository.
Definition at line 124 of file class.ilBasicSkillLevelDBRepository.php.
References lookupLevelProperty().
|
protected |
Lookup level property.
int | $a_id | level id |
string | $a_prop |
Definition at line 102 of file class.ilBasicSkillLevelDBRepository.php.
Referenced by lookupLevelDescription(), lookupLevelSkillId(), and lookupLevelTitle().
ilBasicSkillLevelDBRepository::lookupLevelSkillId | ( | int | $a_id | ) |
Implements ilBasicSkillLevelRepository.
Definition at line 132 of file class.ilBasicSkillLevelDBRepository.php.
References lookupLevelProperty().
ilBasicSkillLevelDBRepository::lookupLevelTitle | ( | int | $a_id | ) |
Implements ilBasicSkillLevelRepository.
Definition at line 116 of file class.ilBasicSkillLevelDBRepository.php.
References lookupLevelProperty().
ilBasicSkillLevelDBRepository::updateLevelOrder | ( | array | $order | ) |
Implements ilBasicSkillLevelRepository.
Definition at line 174 of file class.ilBasicSkillLevelDBRepository.php.
ilBasicSkillLevelDBRepository::writeLevelDescription | ( | int | $a_id, |
string | $a_description | ||
) |
Implements ilBasicSkillLevelRepository.
Definition at line 166 of file class.ilBasicSkillLevelDBRepository.php.
References writeLevelProperty().
|
protected |
Write level property.
int | $a_id | |
string | $a_prop | |
$a_value | ||
string | $a_type |
Definition at line 144 of file class.ilBasicSkillLevelDBRepository.php.
Referenced by writeLevelDescription(), and writeLevelTitle().
ilBasicSkillLevelDBRepository::writeLevelTitle | ( | int | $a_id, |
string | $a_title | ||
) |
Implements ilBasicSkillLevelRepository.
Definition at line 158 of file class.ilBasicSkillLevelDBRepository.php.
References writeLevelProperty().
|
protected |
Definition at line 11 of file class.ilBasicSkillLevelDBRepository.php.
Referenced by __construct(), addLevel(), deleteLevel(), deleteLevelsOfSkill(), fixLevelNumbering(), getLevelData(), getMaxLevelNr(), getSkillForLevelId(), lookupLevelProperty(), updateLevelOrder(), and writeLevelProperty().