ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
|
Class ilSkillLevelDBRepository. More...
Public Member Functions | |
__construct (ilSkillTreeRepository $tree_repo, ?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) | |
Returns multiple rows when $a_id is 0 else one or []. More... | |
lookupLevelTitle (int $a_id) | |
lookupLevelDescription (int $a_id) | |
lookupLevelSkillId (int $a_id) | |
lookupLevelNumber (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) | |
lookupLevelProperty (int $a_id, string $a_prop) | |
writeLevelProperty (int $a_id, string $a_prop, ?string $a_value, string $a_type) | |
Protected Attributes | |
ilDBInterface | $db |
ilSkillTreeRepository | $tree_repo |
Class ilSkillLevelDBRepository.
Definition at line 24 of file class.ilSkillLevelDBRepository.php.
ilSkillLevelDBRepository::__construct | ( | ilSkillTreeRepository | $tree_repo, |
?ilDBInterface | $db = null |
||
) |
Definition at line 29 of file class.ilSkillLevelDBRepository.php.
References $db, $DIC, and $tree_repo.
ilSkillLevelDBRepository::addLevel | ( | int | $skill_id, |
string | $a_title, | ||
string | $a_description, | ||
string | $a_import_id = "" |
||
) |
Implements ilSkillLevelRepository.
Definition at line 48 of file class.ilSkillLevelDBRepository.php.
References $db, $ilDB, getMaxLevelNr(), and ilUtil\now().
ilSkillLevelDBRepository::deleteLevel | ( | int | $a_id | ) |
Implements ilSkillLevelRepository.
Definition at line 174 of file class.ilSkillLevelDBRepository.php.
ilSkillLevelDBRepository::deleteLevelsOfSkill | ( | int | $skill_id | ) |
Implements ilSkillLevelRepository.
Definition at line 38 of file class.ilSkillLevelDBRepository.php.
ilSkillLevelDBRepository::fixLevelNumbering | ( | int | $skill_id | ) |
Implements ilSkillLevelRepository.
Definition at line 184 of file class.ilSkillLevelDBRepository.php.
ilSkillLevelDBRepository::getLevelData | ( | int | $skill_id, |
int | $a_id = 0 |
||
) |
Returns multiple rows when $a_id is 0 else one or [].
Implements ilSkillLevelRepository.
Definition at line 80 of file class.ilSkillLevelDBRepository.php.
|
protected |
Definition at line 65 of file class.ilSkillLevelDBRepository.php.
Referenced by addLevel().
ilSkillLevelDBRepository::getSkillForLevelId | ( | int | $a_level_id | ) |
Implements ilSkillLevelRepository.
Definition at line 204 of file class.ilSkillLevelDBRepository.php.
References $db, $ilDB, and null.
ilSkillLevelDBRepository::lookupLevelDescription | ( | int | $a_id | ) |
Implements ilSkillLevelRepository.
Definition at line 123 of file class.ilSkillLevelDBRepository.php.
References lookupLevelProperty().
ilSkillLevelDBRepository::lookupLevelNumber | ( | int | $a_id | ) |
Implements ilSkillLevelRepository.
Definition at line 133 of file class.ilSkillLevelDBRepository.php.
References lookupLevelProperty().
|
protected |
Definition at line 105 of file class.ilSkillLevelDBRepository.php.
References $db, $ilDB, and null.
Referenced by lookupLevelDescription(), lookupLevelNumber(), lookupLevelSkillId(), and lookupLevelTitle().
ilSkillLevelDBRepository::lookupLevelSkillId | ( | int | $a_id | ) |
Implements ilSkillLevelRepository.
Definition at line 128 of file class.ilSkillLevelDBRepository.php.
References lookupLevelProperty().
ilSkillLevelDBRepository::lookupLevelTitle | ( | int | $a_id | ) |
Implements ilSkillLevelRepository.
Definition at line 118 of file class.ilSkillLevelDBRepository.php.
References lookupLevelProperty().
ilSkillLevelDBRepository::updateLevelOrder | ( | array | $order | ) |
Implements ilSkillLevelRepository.
Definition at line 159 of file class.ilSkillLevelDBRepository.php.
References $db, $id, and $ilDB.
ilSkillLevelDBRepository::writeLevelDescription | ( | int | $a_id, |
string | $a_description | ||
) |
Implements ilSkillLevelRepository.
Definition at line 154 of file class.ilSkillLevelDBRepository.php.
References writeLevelProperty().
|
protected |
Definition at line 138 of file class.ilSkillLevelDBRepository.php.
Referenced by writeLevelDescription(), and writeLevelTitle().
ilSkillLevelDBRepository::writeLevelTitle | ( | int | $a_id, |
string | $a_title | ||
) |
Implements ilSkillLevelRepository.
Definition at line 149 of file class.ilSkillLevelDBRepository.php.
References writeLevelProperty().
|
protected |
Definition at line 26 of file class.ilSkillLevelDBRepository.php.
Referenced by __construct(), addLevel(), deleteLevel(), deleteLevelsOfSkill(), fixLevelNumbering(), getLevelData(), getMaxLevelNr(), getSkillForLevelId(), lookupLevelProperty(), updateLevelOrder(), and writeLevelProperty().
|
protected |
Definition at line 27 of file class.ilSkillLevelDBRepository.php.
Referenced by __construct().