|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilUnitConfigurationRepository: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().
Here is the call graph for this function:
|
protected |
Definition at line 310 of file class.ilUnitConfigurationRepository.php.
References assFormulaQuestionUnit\getId().
Referenced by loadUnits().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUnitConfigurationRepository::checkDeleteCategory | ( | int | $id | ) |
Definition at line 202 of file class.ilUnitConfigurationRepository.php.
References $res, and checkDeleteUnit().
Referenced by deleteCategory().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 305 of file class.ilUnitConfigurationRepository.php.
Referenced by createNewUnit(), deleteCategory(), deleteUnit(), and saveUnit().
Here is the caller graph for this function:| ilUnitConfigurationRepository::cloneUnits | ( | int | $from_consumer_id, |
| int | $to_consumer_id | ||
| ) |
Definition at line 656 of file class.ilUnitConfigurationRepository.php.
References $res, and copyCategory().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| ilUnitConfigurationRepository::copyUnitsByCategories | ( | int | $from_category_id, |
| int | $to_category_id, | ||
| int | $qustion_fi | ||
| ) |
Definition at line 92 of file class.ilUnitConfigurationRepository.php.
References $res.
| 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().
Here is the call graph for this function:| ilUnitConfigurationRepository::deleteCategory | ( | int | $id | ) |
Definition at line 572 of file class.ilUnitConfigurationRepository.php.
References $res, checkDeleteCategory(), clearUnits(), deleteUnit(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilUnitConfigurationRepository::deleteUnit | ( | int | $id | ) |
Definition at line 222 of file class.ilUnitConfigurationRepository.php.
References $res, checkDeleteUnit(), and clearUnits().
Referenced by deleteCategory().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUnitConfigurationRepository::getAdminUnitCategories | ( | ) |
Definition at line 414 of file class.ilUnitConfigurationRepository.php.
References ILIAS\Repository\int(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilUnitConfigurationRepository::getAllUnitCategories | ( | ) |
Definition at line 553 of file class.ilUnitConfigurationRepository.php.
References getConsumerId().
Here is the call graph for this function:| ilUnitConfigurationRepository::getCategorizedUnits | ( | ) |
Definition at line 265 of file class.ilUnitConfigurationRepository.php.
References $categorizedUnits, and getConsumerId().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| ilUnitConfigurationRepository::getUnit | ( | int | $id | ) |
| int | $id |
Definition at line 362 of file class.ilUnitConfigurationRepository.php.
References $id, and loadUnits().
Here is the call graph for this function:| ilUnitConfigurationRepository::getUnitCategories | ( | ) |
Definition at line 382 of file class.ilUnitConfigurationRepository.php.
References ILIAS\Repository\int(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ilUnitConfigurationRepository::getUnitCategoryById | ( | int | $id | ) |
Definition at line 494 of file class.ilUnitConfigurationRepository.php.
References $res.
| ilUnitConfigurationRepository::getUnits | ( | ) |
Definition at line 318 of file class.ilUnitConfigurationRepository.php.
References $units, and loadUnits().
Here is the call graph for this function:| ilUnitConfigurationRepository::isCRUDAllowed | ( | int | $category_id | ) |
Definition at line 55 of file class.ilUnitConfigurationRepository.php.
References $res, getConsumerId(), and ILIAS\Repository\int().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| ilUnitConfigurationRepository::saveNewUnitCategory | ( | assFormulaQuestionUnitCategory | $category | ) |
Definition at line 526 of file class.ilUnitConfigurationRepository.php.
References $res, assFormulaQuestionUnitCategory\getCategory(), getConsumerId(), and assFormulaQuestionUnitCategory\setId().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| ilUnitConfigurationRepository::saveUnitOrder | ( | int | $unit_id, |
| int | $sequence | ||
| ) |
Definition at line 444 of file class.ilUnitConfigurationRepository.php.
References getConsumerId().
Here is the call graph for this function:| 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().