|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Implementation of KioskMode Player. More...
Collaboration diagram for ilLSPlayer:Public Member Functions | |
| __construct (protected ilLSLearnerItemsQueries $ls_items, protected LSControlBuilder $control_builder, protected LSUrlBuilder $url_builder, protected ilLSViewFactory $view_factory, protected ilKioskPageRenderer $page_renderer, protected Factory $ui_factory, protected ScreenContext $current_context, protected Refinery\Factory $refinery, protected ilLanguage $lng, protected ilCtrlInterface $ctrl, protected ?LSNavigator $navigator=null, protected int $mode=ilLearningSequenceSettings::MODE_LINEAR, protected ?LSOItemPath $item_path=null, protected ?LSOAdaptiveBoundaries $boundaries=null, protected int $lso_obj_id=0, protected int $usr_id=0, protected ?LSOLearningMapPosition $position=null, protected ?LSChoicePageBuilder $choice_page_builder=null, protected ?Closure $learning_map=null) | |
| play (RequestWrapper $get) | |
| getCurrentItemLearningProgress () | |
Data Fields | |
| const | PARAM_LSO_COMMAND = 'lsocmd' |
| const | PARAM_LSO_PARAMETER = 'lsov' |
| const | LSO_CMD_NEXT = 'lsonext' |
| const | LSO_CMD_GOTO = 'lsogoto' |
| const | LSO_CMD_JUMP = 'lsojump' |
| const | LSO_CMD_SUSPEND = 'lsosuspend' |
| const | LSO_CMD_FINISH = 'lsofinish' |
| const | LSO_CMD_CHOICE = 'lsochoice' |
| const | LSO_CMD_STAY = 'lsostay' |
| const | REDIRECT_PREFIX = 'REDIRECT::' |
| const | GS_DATA_LS_KIOSK_MODE = 'ls_kiosk_mode' |
| const | GS_DATA_LS_TITLE = 'ls_title' |
| const | GS_DATA_LS_CONTENT = 'ls_content' |
| const | GS_DATA_LS_MAINBARCONTROLS = 'ls_mainbar_controls' |
| const | GS_DATA_LS_METABARCONTROLS = 'ls_metabar_controls' |
Protected Member Functions | |
| getLearningMapHtml (int $ls_ref_id) | |
| The learning map of the current user, without the panel around it - it is shown inside the modal of the main bar entry. More... | |
| getCurrentItem (array $items) | |
| getNextAvailableItem (array $items, LSLearnerItem $current_item) | |
| updateViewState (ILIAS\KioskMode\State $state, ILIAS\KioskMode\View $view, RequestWrapper $get) | |
| getNextItem (array $items, LSLearnerItem $current_item, int $direction) | |
| $direction is either -1 or 1; More... | |
| isItemAvailableForSequenceNavigation (array $items, LSLearnerItem $current_item, LSLearnerItem $target_item, int $direction) | |
| getPosition () | |
| findItemByRefId (array $items, int $ref_id) | |
| buildDefaultControls (LSControlBuilder $control_builder, LSLearnerItem $item, int $item_position, array $items) | |
| renderComponentView ($state, ILIAS\KioskMode\View $view) | |
| isAdaptive () | |
| Whether the player runs in adaptive mode with the required collaborators (navigator, path repository and boundaries) available. More... | |
| getAdaptiveStartObjId () | |
| getAdaptiveEndObjId () | |
| getAdaptiveCurrentItem (array $items) | |
| Determines the current object in adaptive mode from the walked path. More... | |
| getAdaptiveNextItem (array $items, LSLearnerItem $current_item, ?int $direction) | |
| Handles "next"/"back" in adaptive mode. More... | |
| jumpAdaptive (array $items, LSLearnerItem $current_item, ?int $param) | |
| Jumps right to the chosen object in adaptive mode (learning map). More... | |
| gotoAdaptive (array $items, LSLearnerItem $current_item, ?int $param) | |
| getAdaptiveSituation (array $items, LSLearnerItem $item) | |
| Classifies the situation of the given object in adaptive mode: 'end', 'blocked', 'deadend', 'branch' or 'straight'. More... | |
| landsOnInterstitialPage (array $items, LSLearnerItem $item) | |
| Whether arriving on the item (by a step back or by resuming) shows its interstitial page instead of the object: on a branch, or on a dead end that is one structurally as well. More... | |
| amendAdaptiveContent (array $content, array $items, LSLearnerItem $item) | |
| Amends the rendered content with adaptive hints or a choice panel. More... | |
| buildAdaptiveChoiceContent (array $items, LSLearnerItem $item) | |
| Builds the branch-selection content (one card per allowed successor) using the reusable LSChoicePageBuilder template. More... | |
| buildAdaptiveDeadEndContent () | |
| buildAdaptiveControls (LSControlBuilder $control_builder, LSLearnerItem $item, array $items) | |
| Builds the navigation controls for adaptive mode based on the situation and the length of the walked path. More... | |
| buildAdaptiveChoiceControls (LSControlBuilder $control_builder) | |
| Builds the navigation controls for the adaptive interstitial page (branch selection / dead-end notice): only a way back to the object is offered; advancing happens via the choice buttons in the content. More... | |
| txt (string $key) | |
| getAdaptiveDeadEndSvg () | |
Private Attributes | |
| const string | PLAYER_CSS = 'assets/css/lso_player.css' |
Implementation of KioskMode Player.
Definition at line 37 of file class.ilLSPlayer.php.
| ilLSPlayer::__construct | ( | protected ilLSLearnerItemsQueries | $ls_items, |
| protected LSControlBuilder | $control_builder, | ||
| protected LSUrlBuilder | $url_builder, | ||
| protected ilLSViewFactory | $view_factory, | ||
| protected ilKioskPageRenderer | $page_renderer, | ||
| protected Factory | $ui_factory, | ||
| protected ScreenContext | $current_context, | ||
| protected Refinery\Factory | $refinery, | ||
| protected ilLanguage | $lng, | ||
| protected ilCtrlInterface | $ctrl, | ||
| protected ?LSNavigator | $navigator = null, |
||
| protected int | $mode = ilLearningSequenceSettings::MODE_LINEAR, |
||
| protected ?LSOItemPath | $item_path = null, |
||
| protected ?LSOAdaptiveBoundaries | $boundaries = null, |
||
| protected int | $lso_obj_id = 0, |
||
| protected int | $usr_id = 0, |
||
| protected ?LSOLearningMapPosition | $position = null, |
||
| protected ?LSChoicePageBuilder | $choice_page_builder = null, |
||
| protected ?Closure | $learning_map = null |
||
| ) |
Definition at line 58 of file class.ilLSPlayer.php.
|
protected |
Amends the rendered content with adaptive hints or a choice panel.
| Component[] | $content | |
| LSLearnerItem[] | $items |
Definition at line 698 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Builds the branch-selection content (one card per allowed successor) using the reusable LSChoicePageBuilder template.
| LSLearnerItem[] | $items |
Definition at line 722 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Builds the navigation controls for the adaptive interstitial page (branch selection / dead-end notice): only a way back to the object is offered; advancing happens via the choice buttons in the content.
Definition at line 798 of file class.ilLSPlayer.php.
References LSControlBuilder\exit().
Referenced by play().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Builds the navigation controls for adaptive mode based on the situation and the length of the walked path.
| LSLearnerItem[] | $items |
Definition at line 755 of file class.ilLSPlayer.php.
References LSControlBuilder\exit().
Referenced by play().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 731 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Definition at line 528 of file class.ilLSPlayer.php.
References LSControlBuilder\exit().
Referenced by play().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 518 of file class.ilLSPlayer.php.
Referenced by getCurrentItem(), and play().
Here is the caller graph for this function:
|
protected |
Determines the current object in adaptive mode from the walked path.
| LSLearnerItem[] | $items |
Definition at line 632 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Definition at line 823 of file class.ilLSPlayer.php.
|
protected |
Definition at line 622 of file class.ilLSPlayer.php.
|
protected |
Handles "next"/"back" in adaptive mode.
| LSLearnerItem[] | $items |
Definition at line 642 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Classifies the situation of the given object in adaptive mode: 'end', 'blocked', 'deadend', 'branch' or 'straight'.
| LSLearnerItem[] | $items |
Definition at line 671 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Definition at line 617 of file class.ilLSPlayer.php.
|
protected |
| array | LSLearnerItem[] |
Definition at line 406 of file class.ilLSPlayer.php.
References findItemByRefId().
Referenced by play().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLSPlayer::getCurrentItemLearningProgress | ( | ) |
Definition at line 812 of file class.ilLSPlayer.php.
References LSLearnerItem\getLearningProgressStatus().
Here is the call graph for this function:
|
protected |
The learning map of the current user, without the panel around it - it is shown inside the modal of the main bar entry.
Which map is built (adaptive graph or sequential chain) is decided by the operation mode.
Definition at line 390 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Definition at line 422 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:
|
protected |
$direction is either -1 or 1;
Definition at line 473 of file class.ilLSPlayer.php.
References LSItem\getRefId().
Referenced by play().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 510 of file class.ilLSPlayer.php.
|
protected |
| LSLearnerItem[] | $items |
Definition at line 660 of file class.ilLSPlayer.php.
References $param.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Whether the player runs in adaptive mode with the required collaborators (navigator, path repository and boundaries) available.
Definition at line 608 of file class.ilLSPlayer.php.
References ilLearningSequenceSettings\MODE_ADAPTIVE.
Referenced by play().
Here is the caller graph for this function:
|
protected |
| LSLearnerItem[] | $items |
Definition at line 486 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Jumps right to the chosen object in adaptive mode (learning map).
| LSLearnerItem[] | $items |
Definition at line 652 of file class.ilLSPlayer.php.
References $param.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Whether arriving on the item (by a step back or by resuming) shows its interstitial page instead of the object: on a branch, or on a dead end that is one structurally as well.
| LSLearnerItem[] | $items |
Definition at line 683 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:| ilLSPlayer::play | ( | RequestWrapper | $get | ) |
Definition at line 81 of file class.ilLSPlayer.php.
References $DIC, $param, ILIAS\News\Common\Table\$tpl, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), amendAdaptiveContent(), buildAdaptiveChoiceContent(), buildAdaptiveChoiceControls(), buildAdaptiveControls(), buildAdaptiveDeadEndContent(), ilCommonActionDispatcherGUI\buildAjaxHash(), buildDefaultControls(), ilObjLearningSequenceLearnerGUI\CMD_REDRAW_LIST_ITEM, ILIAS\Repository\ctrl(), findItemByRefId(), ILIAS\UICore\GlobalTemplate\get(), getAdaptiveCurrentItem(), getAdaptiveNextItem(), getAdaptiveSituation(), getCurrentItem(), getLearningMapHtml(), getNextAvailableItem(), getNextItem(), gotoAdaptive(), ILIAS\HTTP\Wrapper\RequestWrapper\has(), ilRating\hasRatingInListGUI(), ILIAS\Repository\int(), isAdaptive(), isItemAvailableForSequenceNavigation(), jumpAdaptive(), landsOnInterstitialPage(), ILIAS\Repository\lng(), LSO_CMD_CHOICE, LSO_CMD_FINISH, LSO_CMD_GOTO, LSO_CMD_JUMP, LSO_CMD_NEXT, LSO_CMD_STAY, LSO_CMD_SUSPEND, ilRating\preloadListGUIData(), ILIAS\Repository\refinery(), renderComponentView(), ILIAS\HTTP\Wrapper\RequestWrapper\retrieve(), ILIAS\UICore\GlobalTemplate\setVariable(), txt(), ilCommonActionDispatcherGUI\TYPE_REPOSITORY, and updateViewState().
Here is the call graph for this function:
|
protected |
Definition at line 594 of file class.ilLSPlayer.php.
Referenced by play().
Here is the caller graph for this function:
|
protected |
Definition at line 818 of file class.ilLSPlayer.php.
References ILIAS\Repository\lng().
Referenced by play().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 457 of file class.ilLSPlayer.php.
References $param, ILIAS\Repository\refinery(), and ILIAS\HTTP\Wrapper\RequestWrapper\retrieve().
Referenced by play().
Here is the call graph for this function:
Here is the caller graph for this function:| const ilLSPlayer::GS_DATA_LS_CONTENT = 'ls_content' |
Definition at line 54 of file class.ilLSPlayer.php.
Referenced by ilLSViewLayoutProvider\getContentModification().
| const ilLSPlayer::GS_DATA_LS_KIOSK_MODE = 'ls_kiosk_mode' |
Definition at line 52 of file class.ilLSPlayer.php.
Referenced by ilLSViewLayoutProvider\isKioskModeEnabled().
| const ilLSPlayer::GS_DATA_LS_MAINBARCONTROLS = 'ls_mainbar_controls' |
Definition at line 55 of file class.ilLSPlayer.php.
Referenced by ilLSViewLayoutProvider\getMainBarModification().
| const ilLSPlayer::GS_DATA_LS_METABARCONTROLS = 'ls_metabar_controls' |
Definition at line 56 of file class.ilLSPlayer.php.
Referenced by ilLSViewLayoutProvider\getPageBuilderDecorator().
| const ilLSPlayer::GS_DATA_LS_TITLE = 'ls_title' |
Definition at line 53 of file class.ilLSPlayer.php.
Referenced by ilLSViewLayoutProvider\getPageBuilderDecorator().
| const ilLSPlayer::LSO_CMD_CHOICE = 'lsochoice' |
Definition at line 48 of file class.ilLSPlayer.php.
Referenced by play().
| const ilLSPlayer::LSO_CMD_FINISH = 'lsofinish' |
Definition at line 47 of file class.ilLSPlayer.php.
Referenced by LSControlBuilder\exit(), LSControlBuilder\next(), and play().
| const ilLSPlayer::LSO_CMD_GOTO = 'lsogoto' |
Definition at line 44 of file class.ilLSPlayer.php.
Referenced by play().
| const ilLSPlayer::LSO_CMD_JUMP = 'lsojump' |
Definition at line 45 of file class.ilLSPlayer.php.
Referenced by play().
| const ilLSPlayer::LSO_CMD_NEXT = 'lsonext' |
Definition at line 43 of file class.ilLSPlayer.php.
Referenced by play().
| const ilLSPlayer::LSO_CMD_STAY = 'lsostay' |
Definition at line 49 of file class.ilLSPlayer.php.
Referenced by play().
| const ilLSPlayer::LSO_CMD_SUSPEND = 'lsosuspend' |
Definition at line 46 of file class.ilLSPlayer.php.
Referenced by play().
| const ilLSPlayer::PARAM_LSO_COMMAND = 'lsocmd' |
Definition at line 39 of file class.ilLSPlayer.php.
| const ilLSPlayer::PARAM_LSO_PARAMETER = 'lsov' |
Definition at line 40 of file class.ilLSPlayer.php.
|
private |
Definition at line 41 of file class.ilLSPlayer.php.
| const ilLSPlayer::REDIRECT_PREFIX = 'REDIRECT::' |
Definition at line 50 of file class.ilLSPlayer.php.