ILIAS
release_8 Revision v8.23
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $consumer_id) | |
setConsumerId (int $consumer_id) | |
getConsumerId () | |
isCRUDAllowed (int $category_id) | |
copyCategory (int $category_id, int $question_fi, ?string $category_name=null) | |
copyUnitsByCategories (int $from_category_id, int $to_category_id, int $qustion_fi) | |
getCategoryUnitCount (int $id) | |
isUnitInUse (int $id) | |
checkDeleteCategory (int $id) | |
deleteUnit (int $id) | |
getCategorizedUnits () | |
getUnits () | |
loadUnitsForCategory (int $category) | |
getUnit (int $id) | |
getUnitCategories () | |
getAdminUnitCategories () | |
saveUnitOrder (int $unit_id, int $sequence) | |
checkDeleteUnit (int $id, ?int $category_id=null) | |
getUnitCategoryById (int $id) | |
saveCategory (assFormulaQuestionUnitCategory $category) | |
saveNewUnitCategory (assFormulaQuestionUnitCategory $category) | |
getAllUnitCategories () | |
deleteCategory (int $id) | |
createNewUnit (assFormulaQuestionUnit $unit) | |
saveUnit (assFormulaQuestionUnit $unit) | |
cloneUnits (int $from_consumer_id, int $to_consumer_id) | |
Protected Member Functions | |
loadUnits () | |
clearUnits () | |
addUnit (assFormulaQuestionUnit $unit) | |
Protected Attributes | |
int | $consumer_id = 0 |
ilLanguage | $lng |
ilDBInterface | $db |
Private Attributes | |
array | $units = [] |
array | $categorizedUnits = [] |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilUnitConfigurationRepository
Definition at line 24 of file class.ilUnitConfigurationRepository.php.
ilUnitConfigurationRepository::__construct | ( | int | $consumer_id | ) |
Definition at line 34 of file class.ilUnitConfigurationRepository.php.
References $consumer_id, $DIC, $lng, and ILIAS\Repository\lng().
|
protected |
Definition at line 310 of file class.ilUnitConfigurationRepository.php.
References assFormulaQuestionUnit\getId().
Referenced by loadUnits().
ilUnitConfigurationRepository::checkDeleteCategory | ( | int | $id | ) |
Definition at line 202 of file class.ilUnitConfigurationRepository.php.
References $res, and checkDeleteUnit().
Referenced by deleteCategory().
ilUnitConfigurationRepository::checkDeleteUnit | ( | int | $id, |
?int | $category_id = null |
||
) |
Definition at line 453 of file class.ilUnitConfigurationRepository.php.
References ILIAS\Repository\lng().
Referenced by checkDeleteCategory(), and deleteUnit().
|
protected |
Definition at line 305 of file class.ilUnitConfigurationRepository.php.
Referenced by createNewUnit(), deleteCategory(), deleteUnit(), and saveUnit().
ilUnitConfigurationRepository::cloneUnits | ( | int | $from_consumer_id, |
int | $to_consumer_id | ||
) |
Definition at line 656 of file class.ilUnitConfigurationRepository.php.
References $i, $res, and copyCategory().
ilUnitConfigurationRepository::copyCategory | ( | int | $category_id, |
int | $question_fi, | ||
?string | $category_name = null |
||
) |
Definition at line 66 of file class.ilUnitConfigurationRepository.php.
References $res.
Referenced by cloneUnits().
ilUnitConfigurationRepository::copyUnitsByCategories | ( | int | $from_category_id, |
int | $to_category_id, | ||
int | $qustion_fi | ||
) |
Definition at line 92 of file class.ilUnitConfigurationRepository.php.
ilUnitConfigurationRepository::createNewUnit | ( | assFormulaQuestionUnit | $unit | ) |
Definition at line 601 of file class.ilUnitConfigurationRepository.php.
References clearUnits(), assFormulaQuestionUnit\getCategory(), getConsumerId(), assFormulaQuestionUnit\getUnit(), assFormulaQuestionUnit\setBaseUnit(), assFormulaQuestionUnit\setFactor(), assFormulaQuestionUnit\setId(), and assFormulaQuestionUnit\setSequence().
ilUnitConfigurationRepository::deleteCategory | ( | int | $id | ) |
Definition at line 572 of file class.ilUnitConfigurationRepository.php.
References $res, checkDeleteCategory(), clearUnits(), deleteUnit(), and ILIAS\Repository\lng().
ilUnitConfigurationRepository::deleteUnit | ( | int | $id | ) |
Definition at line 222 of file class.ilUnitConfigurationRepository.php.
References $res, checkDeleteUnit(), and clearUnits().
Referenced by deleteCategory().
ilUnitConfigurationRepository::getAdminUnitCategories | ( | ) |
Definition at line 414 of file class.ilUnitConfigurationRepository.php.
References ILIAS\Repository\int(), and ILIAS\Repository\lng().
ilUnitConfigurationRepository::getAllUnitCategories | ( | ) |
Definition at line 553 of file class.ilUnitConfigurationRepository.php.
References getConsumerId().
ilUnitConfigurationRepository::getCategorizedUnits | ( | ) |
Definition at line 265 of file class.ilUnitConfigurationRepository.php.
References $categorizedUnits, and getConsumerId().
ilUnitConfigurationRepository::getCategoryUnitCount | ( | int | $id | ) |
Definition at line 165 of file class.ilUnitConfigurationRepository.php.
ilUnitConfigurationRepository::getConsumerId | ( | ) |
Definition at line 50 of file class.ilUnitConfigurationRepository.php.
References $consumer_id.
Referenced by createNewUnit(), getAllUnitCategories(), getCategorizedUnits(), isCRUDAllowed(), saveCategory(), saveNewUnitCategory(), saveUnit(), and saveUnitOrder().
ilUnitConfigurationRepository::getUnit | ( | int | $id | ) |
int | $id |
Definition at line 362 of file class.ilUnitConfigurationRepository.php.
References $id, and loadUnits().
ilUnitConfigurationRepository::getUnitCategories | ( | ) |
Definition at line 382 of file class.ilUnitConfigurationRepository.php.
References ILIAS\Repository\int(), and ILIAS\Repository\lng().
ilUnitConfigurationRepository::getUnitCategoryById | ( | int | $id | ) |
Definition at line 494 of file class.ilUnitConfigurationRepository.php.
ilUnitConfigurationRepository::getUnits | ( | ) |
Definition at line 318 of file class.ilUnitConfigurationRepository.php.
References $units, and loadUnits().
ilUnitConfigurationRepository::isCRUDAllowed | ( | int | $category_id | ) |
Definition at line 55 of file class.ilUnitConfigurationRepository.php.
References $res, getConsumerId(), and ILIAS\Repository\int().
ilUnitConfigurationRepository::isUnitInUse | ( | int | $id | ) |
Definition at line 176 of file class.ilUnitConfigurationRepository.php.
|
protected |
Definition at line 242 of file class.ilUnitConfigurationRepository.php.
References addUnit().
Referenced by getUnit(), and getUnits().
ilUnitConfigurationRepository::loadUnitsForCategory | ( | int | $category | ) |
int | $category |
Definition at line 330 of file class.ilUnitConfigurationRepository.php.
References $DIC, $ilDB, and $units.
ilUnitConfigurationRepository::saveCategory | ( | assFormulaQuestionUnitCategory | $category | ) |
Definition at line 508 of file class.ilUnitConfigurationRepository.php.
References $res, assFormulaQuestionUnitCategory\getCategory(), getConsumerId(), and assFormulaQuestionUnitCategory\getId().
ilUnitConfigurationRepository::saveNewUnitCategory | ( | assFormulaQuestionUnitCategory | $category | ) |
Definition at line 526 of file class.ilUnitConfigurationRepository.php.
References $res, assFormulaQuestionUnitCategory\getCategory(), getConsumerId(), and assFormulaQuestionUnitCategory\setId().
ilUnitConfigurationRepository::saveUnit | ( | assFormulaQuestionUnit | $unit | ) |
Definition at line 625 of file class.ilUnitConfigurationRepository.php.
References $res, clearUnits(), assFormulaQuestionUnit\getBaseUnit(), assFormulaQuestionUnit\getCategory(), getConsumerId(), assFormulaQuestionUnit\getFactor(), assFormulaQuestionUnit\getId(), assFormulaQuestionUnit\getSequence(), assFormulaQuestionUnit\getUnit(), ILIAS\Repository\int(), and assFormulaQuestionUnit\setFactor().
ilUnitConfigurationRepository::saveUnitOrder | ( | int | $unit_id, |
int | $sequence | ||
) |
Definition at line 444 of file class.ilUnitConfigurationRepository.php.
References getConsumerId().
ilUnitConfigurationRepository::setConsumerId | ( | int | $consumer_id | ) |
Definition at line 45 of file class.ilUnitConfigurationRepository.php.
References $consumer_id.
|
private |
Definition at line 32 of file class.ilUnitConfigurationRepository.php.
Referenced by getCategorizedUnits().
|
protected |
Definition at line 26 of file class.ilUnitConfigurationRepository.php.
Referenced by __construct(), getConsumerId(), and setConsumerId().
|
protected |
Definition at line 28 of file class.ilUnitConfigurationRepository.php.
|
protected |
Definition at line 27 of file class.ilUnitConfigurationRepository.php.
Referenced by __construct().
|
private |
Definition at line 30 of file class.ilUnitConfigurationRepository.php.
Referenced by getUnits(), and loadUnitsForCategory().