|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Stores start and end object boundaries of adaptive learning sequences. More...
Collaboration diagram for ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries:Public Member Functions | |
| __construct (ilDBInterface $db) | |
| Creates the boundary repository. More... | |
| getBoundariesFor (int $lso_obj_id) | |
| Gets the start and end boundaries of a learning sequence. More... | |
| setStartRefId (int $lso_obj_id, int $start_ref_id) | |
| Sets the start object reference ID of a learning sequence. More... | |
| setEndRefId (int $lso_obj_id, int $end_ref_id) | |
| Sets the end object reference ID of a learning sequence. More... | |
| unsetStartRefId (int $lso_obj_id) | |
| Removes the start object reference ID of a learning sequence. More... | |
| unsetEndRefId (int $lso_obj_id) | |
| Removes the end object reference ID of a learning sequence. More... | |
| removeRefIdFromBoundaries (int $lso_obj_id, int $ref_id) | |
| Removes a given ref_id from the boundaries of an LSO if it is currently stored as the start and/or end object. More... | |
Data Fields | |
| const string | TABLE_NAME = 'lso_item_boundaries' |
Protected Member Functions | |
| cleanupIfEmpty (int $lso_obj_id) | |
| Removes an empty boundary record. More... | |
Protected Attributes | |
| ilDBInterface | $db |
| Database connection. More... | |
Stores start and end object boundaries of adaptive learning sequences.
Definition at line 28 of file LSOAdaptiveBoundaries.php.
| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries::__construct | ( | ilDBInterface | $db | ) |
Creates the boundary repository.
Definition at line 40 of file LSOAdaptiveBoundaries.php.
References ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\$db.
|
protected |
Removes an empty boundary record.
Definition at line 170 of file LSOAdaptiveBoundaries.php.
References ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\getBoundariesFor().
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\unsetEndRefId(), and ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\unsetStartRefId().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries::getBoundariesFor | ( | int | $lso_obj_id | ) |
Gets the start and end boundaries of a learning sequence.
Definition at line 50 of file LSOAdaptiveBoundaries.php.
References $res, and ILIAS\Repository\int().
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\cleanupIfEmpty(), ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\removeRefIdFromBoundaries(), ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\setEndRefId(), and ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\setStartRefId().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries::removeRefIdFromBoundaries | ( | int | $lso_obj_id, |
| int | $ref_id | ||
| ) |
Removes a given ref_id from the boundaries of an LSO if it is currently stored as the start and/or end object.
Only the affected field(s) are cleared - not the whole row (unless it becomes empty, in which case {
| int | $lso_obj_id | obj_id of the learning sequence |
| int | $ref_id | ref_id of the deleted object |
Definition at line 145 of file LSOAdaptiveBoundaries.php.
References ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\getBoundariesFor(), ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\unsetEndRefId(), and ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\unsetStartRefId().
Here is the call graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries::setEndRefId | ( | int | $lso_obj_id, |
| int | $end_ref_id | ||
| ) |
Sets the end object reference ID of a learning sequence.
Definition at line 88 of file LSOAdaptiveBoundaries.php.
References ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\getBoundariesFor().
Here is the call graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries::setStartRefId | ( | int | $lso_obj_id, |
| int | $start_ref_id | ||
| ) |
Sets the start object reference ID of a learning sequence.
Definition at line 67 of file LSOAdaptiveBoundaries.php.
References ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\getBoundariesFor().
Here is the call graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries::unsetEndRefId | ( | int | $lso_obj_id | ) |
Removes the end object reference ID of a learning sequence.
Definition at line 122 of file LSOAdaptiveBoundaries.php.
References ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\cleanupIfEmpty().
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\removeRefIdFromBoundaries().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries::unsetStartRefId | ( | int | $lso_obj_id | ) |
Removes the start object reference ID of a learning sequence.
Definition at line 109 of file LSOAdaptiveBoundaries.php.
References ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\cleanupIfEmpty().
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\removeRefIdFromBoundaries().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Database connection.
Definition at line 35 of file LSOAdaptiveBoundaries.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries\__construct().
| const string ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveBoundaries::TABLE_NAME = 'lso_item_boundaries' |
Definition at line 30 of file LSOAdaptiveBoundaries.php.