|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Controls adaptive learning sequence content management. More...
Inheritance diagram for ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent:
Collaboration diagram for ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent:Public Member Functions | |
| __construct (ilObjLearningSequenceContentGUI $parent_gui, Factory $ui_factory, Renderer $ui_renderer, ilLanguage $lng, ilCtrl $ctrl, ServerRequestInterface $request, ilGlobalTemplateInterface $tpl, int $ref_id, int $obj_id) | |
| Creates the adaptive content controller. More... | |
| getSupportedCommands () | |
| Gets the commands supported by the controller. More... | |
| manageContent () | |
| Renders the adaptive content management view. More... | |
| getSpecificActions (int $ref_id, int $start_ref_id, int $end_ref_id) | |
| Gets actions specific to an adaptive learning sequence item. More... | |
| setStartObject () | |
| Sets the selected item as the start object. More... | |
| unsetStartObject () | |
| Removes the start object. More... | |
| setEndObject () | |
| Sets the selected item as the end object. More... | |
| unsetEndObject () | |
| Removes the end object. More... | |
| manageContent () | |
| Renders the content management view (the default command). More... | |
| getSupportedCommands () | |
| The list of commands this controller is responsible for. More... | |
Protected Member Functions | |
| getStaticInputConfigurationIssues (array $items, AdaptiveNavigator $navigator) | |
| isMisconfiguredRefId (int $ref_id, array $misconfigured_ref_ids) | |
| getObjectTitleList (array $ref_ids) | |
| Builds a readable list of object titles for the given ref ids. More... | |
| getTableData (array $items, ?array $filter_data, array $structural_successors, array $misconfigured_ref_ids, array $issue_details_by_ref_id) | |
| Gets the filtered content table data. More... | |
| getInputConditionOptions () | |
| Gets input condition filter options. More... | |
| getOutputConditionOptions () | |
| Gets output condition filter options. More... | |
Protected Attributes | |
| ilObjLearningSequenceContentGUI | $parent_gui |
| Parent content GUI. More... | |
| Factory | $ui_factory |
| UI factory. More... | |
| Renderer | $ui_renderer |
| UI renderer. More... | |
| ilLanguage | $lng |
| Language service. More... | |
| ilCtrl | $ctrl |
| Controller service. More... | |
| ServerRequestInterface | $request |
| Server request. More... | |
| ilGlobalTemplateInterface | $tpl |
| Global template. More... | |
| int | $ref_id |
| Learning sequence repository reference ID. More... | |
| int | $obj_id |
| Learning sequence object ID. More... | |
Private Member Functions | |
| getConditionTypes () | |
| Gets the condition types contributed to the learning sequence. More... | |
| getBoundaries () | |
| Gets the repository of the start and end objects. More... | |
Private Attributes | |
| ilObjLearningSequence | $lso = null |
| Learning sequence object, loaded on first use. More... | |
Controls adaptive learning sequence content management.
Definition at line 49 of file LSOAdaptiveContent.php.
| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent::__construct | ( | ilObjLearningSequenceContentGUI | $parent_gui, |
| Factory | $ui_factory, | ||
| Renderer | $ui_renderer, | ||
| ilLanguage | $lng, | ||
| ilCtrl | $ctrl, | ||
| ServerRequestInterface | $request, | ||
| ilGlobalTemplateInterface | $tpl, | ||
| int | $ref_id, | ||
| int | $obj_id | ||
| ) |
Creates the adaptive content controller.
Definition at line 77 of file LSOAdaptiveContent.php.
References ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$ctrl, ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$lng, ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$obj_id, ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$parent_gui, ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$ref_id, ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$request, ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$tpl, ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$ui_factory, ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$ui_renderer, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
private |
Gets the repository of the start and end objects.
Definition at line 446 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\manageContent().
Here is the caller graph for this function:
|
private |
Gets the condition types contributed to the learning sequence.
Definition at line 438 of file LSOAdaptiveContent.php.
|
protected |
Gets input condition filter options.
Definition at line 416 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\manageContent().
Here is the caller graph for this function:
|
protected |
Builds a readable list of object titles for the given ref ids.
| int[] | $ref_ids | Ref ids of the connected objects. |
Definition at line 220 of file LSOAdaptiveContent.php.
References ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$ref_id, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ILIAS\Repository\lng(), and ILIAS\UI\examples\Symbol\Glyph\Sort\sort().
Here is the call graph for this function:
|
protected |
Gets output condition filter options.
Definition at line 428 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\manageContent().
Here is the caller graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent::getSpecificActions | ( | int | $ref_id, |
| int | $start_ref_id, | ||
| int | $end_ref_id | ||
| ) |
Gets actions specific to an adaptive learning sequence item.
Definition at line 490 of file LSOAdaptiveContent.php.
References $id, ilObjLearningSequenceContentGUI\CMD_SET_END_OBJECT, ilObjLearningSequenceContentGUI\CMD_SET_START_OBJECT, ilObjLearningSequenceContentGUI\CMD_UNSET_END_OBJECT, ilObjLearningSequenceContentGUI\CMD_UNSET_START_OBJECT, ILIAS\Repository\ctrl(), ILIAS\Repository\link(), and ILIAS\Repository\lng().
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveTable\buildEnvironment().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| \LSItem[] | $items | Learning sequence items. |
Definition at line 197 of file LSOAdaptiveContent.php.
References ILIAS\LearningSequence\Player\AdaptiveNavigator\getInputConditions().
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\manageContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent::getSupportedCommands | ( | ) |
Gets the commands supported by the controller.
Implements ILIAS\LearningSequence\Content\LSOContentController.
Definition at line 104 of file LSOAdaptiveContent.php.
References ilObjLearningSequenceContentGUI\CMD_DELETE, ilObjLearningSequenceContentGUI\CMD_MANAGE_CONTENT, ilObjLearningSequenceContentGUI\CMD_SET_END_OBJECT, ilObjLearningSequenceContentGUI\CMD_SET_START_OBJECT, ilObjLearningSequenceContentGUI\CMD_UNSET_END_OBJECT, and ilObjLearningSequenceContentGUI\CMD_UNSET_START_OBJECT.
|
protected |
Gets the filtered content table data.
| \LSItem[] | $items | Learning sequence items. |
| array<string,mixed>|null | $filter_data Filter data. | |
| array<int,int[]> | $structural_successors Ref ids of the structural successors per item. | |
| array<int,bool> | $misconfigured_ref_ids | |
| array<int,StaticInputConfigurationIssueDetail[]> | $issue_details_by_ref_id |
Definition at line 245 of file LSOAdaptiveContent.php.
References ILIAS\Repository\int().
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\manageContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| array<int,bool> | $misconfigured_ref_ids |
Definition at line 210 of file LSOAdaptiveContent.php.
References ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$ref_id.
| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent::manageContent | ( | ) |
Renders the adaptive content management view.
Implements ILIAS\LearningSequence\Content\LSOContentController.
Definition at line 119 of file LSOAdaptiveContent.php.
References $data, ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\$lso, ILIAS\Repository\ctrl(), ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\getBoundaries(), ilObjLearningSequence\getDI(), ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\getInputConditionOptions(), ilObjLearningSequence\getLSItems(), ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\getOutputConditionOptions(), LSItem\getRefId(), ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\getStaticInputConfigurationIssues(), ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\getTableData(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent::setEndObject | ( | ) |
Sets the selected item as the end object.
Definition at line 593 of file LSOAdaptiveContent.php.
References ilObjLearningSequenceContentGUI\CMD_MANAGE_CONTENT, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent::setStartObject | ( | ) |
Sets the selected item as the start object.
Definition at line 556 of file LSOAdaptiveContent.php.
References ilObjLearningSequenceContentGUI\CMD_MANAGE_CONTENT, ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent::unsetEndObject | ( | ) |
Removes the end object.
Definition at line 617 of file LSOAdaptiveContent.php.
References ilObjLearningSequenceContentGUI\CMD_MANAGE_CONTENT, ILIAS\Repository\ctrl(), ILIAS\LearningSequence\Content\enforceOfflineForMissingBoundaries(), and ILIAS\Repository\lng().
Here is the call graph for this function:| ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent::unsetStartObject | ( | ) |
Removes the start object.
Definition at line 580 of file LSOAdaptiveContent.php.
References ilObjLearningSequenceContentGUI\CMD_MANAGE_CONTENT, ILIAS\Repository\ctrl(), ILIAS\LearningSequence\Content\enforceOfflineForMissingBoundaries(), and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Controller service.
Definition at line 62 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\__construct().
|
protected |
Language service.
Definition at line 60 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\__construct().
|
private |
Learning sequence object, loaded on first use.
Definition at line 72 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\manageContent().
|
protected |
Learning sequence object ID.
Definition at line 70 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\__construct().
|
protected |
Parent content GUI.
Definition at line 54 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\__construct().
|
protected |
Learning sequence repository reference ID.
Definition at line 68 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\__construct(), ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\getObjectTitleList(), and ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\isMisconfiguredRefId().
|
protected |
Server request.
Definition at line 64 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\__construct().
|
protected |
Global template.
Definition at line 66 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\__construct().
|
protected |
UI factory.
Definition at line 56 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\__construct().
|
protected |
UI renderer.
Definition at line 58 of file LSOAdaptiveContent.php.
Referenced by ILIAS\LearningSequence\Content\Adaptive\LSOAdaptiveContent\__construct().