|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Collaboration diagram for ILIAS\LearningSequence\Content\Condition\ConditionHandler:Public Member Functions | |
| __construct (protected \ilDBInterface $db, protected \ilLanguage $lng, private ConditionFactory $condition_factory) | |
| getInputConditionsByRefId (int $lso_ref_id, int $obj_ref_id) | |
| getOutputConditionsByRefId (int $lso_ref_id, int $obj_ref_id) | |
| deleteConditionsByRefId (int $lso_ref_id, int $obj_ref_id) | |
| Deletes all conditions attached to an object that is being removed from the Learning Sequence, regardless of the current operation mode. More... | |
| deleteConditionsByLSORefId (int $lso_ref_id) | |
| Deletes all conditions that belong to a Learning Sequence itself. More... | |
| deleteCondition (int $condition_id) | |
| Deletes a single condition entry from lso_conditions by its condition id. More... | |
Protected Member Functions | |
| formatConditionsForGui (array $db_conditions) | |
| getConditionsFromDb (int $lso_ref_id, int $obj_ref_id, array $available_classes) | |
Definition at line 23 of file class.ilObjLearningSequenceConditionHandler.php.
| ILIAS\LearningSequence\Content\Condition\ConditionHandler::__construct | ( | protected \ilDBInterface | $db, |
| protected \ilLanguage | $lng, | ||
| private ConditionFactory | $condition_factory | ||
| ) |
Definition at line 25 of file class.ilObjLearningSequenceConditionHandler.php.
| ILIAS\LearningSequence\Content\Condition\ConditionHandler::deleteCondition | ( | int | $condition_id | ) |
Deletes a single condition entry from lso_conditions by its condition id.
| int | $condition_id | id of the condition to delete |
Definition at line 128 of file class.ilObjLearningSequenceConditionHandler.php.
Referenced by ILIAS\LearningSequence\Content\Condition\ConditionHandler\deleteConditionsByRefId().
Here is the caller graph for this function:| ILIAS\LearningSequence\Content\Condition\ConditionHandler::deleteConditionsByLSORefId | ( | int | $lso_ref_id | ) |
Deletes all conditions that belong to a Learning Sequence itself.
Besides the generic rows in lso_conditions this also clears all condition-specific payload rows from every lso_c_* table by condition_id.
Definition at line 91 of file class.ilObjLearningSequenceConditionHandler.php.
References $res, and ILIAS\Repository\int().
Here is the call graph for this function:| ILIAS\LearningSequence\Content\Condition\ConditionHandler::deleteConditionsByRefId | ( | int | $lso_ref_id, |
| int | $obj_ref_id | ||
| ) |
Deletes all conditions attached to an object that is being removed from the Learning Sequence, regardless of the current operation mode.
For every condition found for the deleted object it delegates to the concrete condition instance's public delete() method, which removes both the condition-specific payload (deleteConditionData()) and the generic entry in lso_conditions. If the concrete condition can no longer be resolved, the generic lso_conditions entry is removed as a fallback.
| int | $lso_ref_id | ref_id of the Learning Sequence object |
| int | $obj_ref_id | ref_id of the deleted object |
Definition at line 63 of file class.ilObjLearningSequenceConditionHandler.php.
References Vendor\Package\$e, $res, ILIAS\LearningSequence\Content\Condition\ConditionHandler\deleteCondition(), and ILIAS\Repository\int().
Here is the call graph for this function:
|
protected |
| array[] | $db_conditions |
Definition at line 141 of file class.ilObjLearningSequenceConditionHandler.php.
References Vendor\Package\$e, $res, ILIAS\LearningSequence\Content\Condition\SubtypeAwareInterface\getSubtypeLabel(), and ILIAS\Repository\lng().
Referenced by ILIAS\LearningSequence\Content\Condition\ConditionHandler\getInputConditionsByRefId(), and ILIAS\LearningSequence\Content\Condition\ConditionHandler\getOutputConditionsByRefId().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 176 of file class.ilObjLearningSequenceConditionHandler.php.
References Vendor\Package\$e, $res, and ILIAS\LearningSequence\Content\Condition\AbstractCondition\getIdentifierForClass().
Referenced by ILIAS\LearningSequence\Content\Condition\ConditionHandler\getInputConditionsByRefId(), and ILIAS\LearningSequence\Content\Condition\ConditionHandler\getOutputConditionsByRefId().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\LearningSequence\Content\Condition\ConditionHandler::getInputConditionsByRefId | ( | int | $lso_ref_id, |
| int | $obj_ref_id | ||
| ) |
Definition at line 35 of file class.ilObjLearningSequenceConditionHandler.php.
References ILIAS\LearningSequence\Content\Condition\ConditionHandler\formatConditionsForGui(), and ILIAS\LearningSequence\Content\Condition\ConditionHandler\getConditionsFromDb().
Here is the call graph for this function:| ILIAS\LearningSequence\Content\Condition\ConditionHandler::getOutputConditionsByRefId | ( | int | $lso_ref_id, |
| int | $obj_ref_id | ||
| ) |
Definition at line 44 of file class.ilObjLearningSequenceConditionHandler.php.
References ILIAS\LearningSequence\Content\Condition\ConditionHandler\formatConditionsForGui(), and ILIAS\LearningSequence\Content\Condition\ConditionHandler\getConditionsFromDb().
Here is the call graph for this function: