ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class LSControlBuilder. More...
Public Member Functions | ||||||
__construct (Factory $ui_factory, LSURLBuilder $url_builder, ilLanguage $language, LSGlobalSettings $global_settings) | ||||||
getExitControl () | ||||||
getPreviousControl () | ||||||
getNextControl () | ||||||
getDoneControl () | ||||||
getToggles () | ||||||
getModeControls () | ||||||
getControls () | ||||||
getLocator () | ||||||
getToc () | ||||||
exit (string $command) | ||||||
An exit control allows the user to gracefully leave the object providing the kiosk mode.
LogicException if view wants to introduce a second exit button. More... | ||||||
next (string $command, int $parameter=null) | ||||||
A next control allows the user to progress to the next item in the object.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
LogicException if view wants to introduce a second next button. More... | ||||||
previous (string $command, int $parameter=null) | ||||||
A previous control allows the user to go back to the previous item in the object.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
LogicException if view wants to introduce a second previous button. More... | ||||||
done (string $command, int $parameter=null) | ||||||
A done control allows the user to mark the object as done.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
LogicException if view wants to introduce a second done button. More... | ||||||
generic (string $label, string $command, int $parameter=null) | ||||||
A generic control needs to have a label that tells what it does.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content. More... | ||||||
toggle (string $label, string $on_command, string $off_command) | ||||||
A toggle can be used to switch some behaviour in the view on or of. More... | ||||||
mode (string $command, array $labels) | ||||||
A mode control can be used to switch between different modes in the view.Uses the indizes of the labels in the array as parameter for the command. More... | ||||||
locator (string $command) | ||||||
A locator allows the user to see the path leading to her current location and jump back to previous items on that path.The command will be enhanced with a parameter defined in the locator builder.
LogicException if view wants to introduce a second locator. More... | ||||||
tableOfContent (string $label, string $command, int $parameter=null, $state=null) | ||||||
A table of content allows the user to get an overview over the generally available content in the object.The command will be enhanced with a parameter defined here on in the locator builder.If a parameter is defined here, the view provides an overview-page.
LogicException if view wants to introduce a second TOC.
| ||||||
start (string $label, string $url, int $parameter=null) | ||||||
Add a "start"-button as primary. More... | ||||||
getStartControl () | ||||||
getAdditionalJS () | ||||||
exit (string $command) | ||||||
An exit control allows the user to gracefully leave the object providing the kiosk mode. More... | ||||||
next (string $command, int $parameter=null) | ||||||
A next control allows the user to progress to the next item in the object. More... | ||||||
previous (string $command, int $parameter=null) | ||||||
A previous control allows the user to go back to the previous item in the object. More... | ||||||
done (string $command, int $parameter=null) | ||||||
A done control allows the user to mark the object as done. More... | ||||||
generic (string $label, string $command, int $parameter=null) | ||||||
A generic control needs to have a label that tells what it does. More... | ||||||
toggle (string $label, string $on_command, string $off_command) | ||||||
A toggle can be used to switch some behaviour in the view on or of. More... | ||||||
mode (string $command, array $labels) | ||||||
A mode control can be used to switch between different modes in the view. More... | ||||||
locator (string $command) | ||||||
A locator allows the user to see the path leading to her current location and jump back to previous items on that path. More... | ||||||
tableOfContent (string $label, string $command, int $parameter=null, $state=null) | ||||||
A table of content allows the user to get an overview over the generally available content in the object. More... | ||||||
Data Fields | |
const | CMD_START_OBJECT = 'start_legacy_obj' |
const | CMD_CHECK_CURRENT_ITEM_LP = 'ccilp' |
const | PARAM_LP_CURRENT_ITEM_OBJID = 'ccilpobjid' |
Protected Member Functions | |
getStartSignal () | |
This is a hack and not supposed to be considered as a common way to inject JS-Code and bind it to a button. More... | |
setListenerJS (string $signal_id, string $new_win_url, string $check_lp_url, string $on_lp_change_url) | |
Protected Attributes | |
$exit_control | |
$previous_control | |
$next_control | |
$done_control | |
$controls = [] | |
$toggles = [] | |
$mode_controls = [] | |
$toc | |
$loc | |
$ui_factory | |
$url_builder | |
$start | |
$additional_js | |
$global_settings | |
Class LSControlBuilder.
Definition at line 15 of file LSControlBuilder.php.
LSControlBuilder::__construct | ( | Factory | $ui_factory, |
LSURLBuilder | $url_builder, | ||
ilLanguage | $language, | ||
LSGlobalSettings | $global_settings | ||
) |
Definition at line 91 of file LSControlBuilder.php.
References $global_settings, $language, $ui_factory, and $url_builder.
LSControlBuilder::done | ( | string | $command, |
int | $parameter = null |
||
) |
A done control allows the user to mark the object as done.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
LogicException if view wants to introduce a second done button.
Implements ILIAS\KioskMode\ControlBuilder.
Definition at line 211 of file LSControlBuilder.php.
LSControlBuilder::exit | ( | string | $command | ) |
An exit control allows the user to gracefully leave the object providing the kiosk mode.
LogicException if view wants to introduce a second exit button.
Implements ILIAS\KioskMode\ControlBuilder.
Definition at line 151 of file LSControlBuilder.php.
References ilLSPlayer\LSO_CMD_FINISH.
Referenced by ilLSPlayer\buildDefaultControls().
LSControlBuilder::generic | ( | string | $label, |
string | $command, | ||
int | $parameter = null |
||
) |
A generic control needs to have a label that tells what it does.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
Implements ILIAS\KioskMode\ControlBuilder.
Definition at line 226 of file LSControlBuilder.php.
LSControlBuilder::getAdditionalJS | ( | ) |
Definition at line 339 of file LSControlBuilder.php.
LSControlBuilder::getControls | ( | ) |
LSControlBuilder::getDoneControl | ( | ) |
Definition at line 118 of file LSControlBuilder.php.
References $done_control.
Referenced by ilKioskPageRenderer\render().
LSControlBuilder::getExitControl | ( | ) |
LSControlBuilder::getLocator | ( | ) |
Definition at line 138 of file LSControlBuilder.php.
References $loc.
LSControlBuilder::getModeControls | ( | ) |
LSControlBuilder::getNextControl | ( | ) |
LSControlBuilder::getPreviousControl | ( | ) |
LSControlBuilder::getStartControl | ( | ) |
|
protected |
This is a hack and not supposed to be considered as a common way to inject JS-Code and bind it to a button.
However, for the time beeing and the lack of a general alternative, I think it's OK to do this for legacy(!)-objects here...
Definition at line 331 of file LSControlBuilder.php.
References $id.
LSControlBuilder::getToc | ( | ) |
Definition at line 143 of file LSControlBuilder.php.
References $toc.
LSControlBuilder::getToggles | ( | ) |
LSControlBuilder::locator | ( | string | $command | ) |
A locator allows the user to see the path leading to her current location and jump back to previous items on that path.The command will be enhanced with a parameter defined in the locator builder.
LogicException if view wants to introduce a second locator.
Implements ILIAS\KioskMode\ControlBuilder.
Definition at line 262 of file LSControlBuilder.php.
References $loc.
LSControlBuilder::mode | ( | string | $command, |
array | $labels | ||
) |
A mode control can be used to switch between different modes in the view.Uses the indizes of the labels in the array as parameter for the command.
Implements ILIAS\KioskMode\ControlBuilder.
Definition at line 249 of file LSControlBuilder.php.
References ILIAS\KioskMode\ControlBuilder\mode().
LSControlBuilder::next | ( | string | $command, |
int | $parameter = null |
||
) |
A next control allows the user to progress to the next item in the object.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
LogicException if view wants to introduce a second next button.
Implements ILIAS\KioskMode\ControlBuilder.
Definition at line 175 of file LSControlBuilder.php.
LSControlBuilder::previous | ( | string | $command, |
int | $parameter = null |
||
) |
A previous control allows the user to go back to the previous item in the object.The $parameter can be used to pass additional information to View::updateGet if required, e.g. about a chapter in the content.
LogicException if view wants to introduce a second previous button.
Implements ILIAS\KioskMode\ControlBuilder.
Definition at line 193 of file LSControlBuilder.php.
|
protected |
Definition at line 344 of file LSControlBuilder.php.
LSControlBuilder::start | ( | string | $label, |
string | $url, | ||
int | $parameter = null |
||
) |
Add a "start"-button as primary.
This is NOT regular behavior, but a special feature for the LegacyView of LearningSequence's sub-objects that do not implement a KioskModeView.
The start-control is exclusively used to open an ILIAS-Object in a new windwow/tab.
Definition at line 294 of file LSControlBuilder.php.
References $url.
LSControlBuilder::tableOfContent | ( | string | $label, |
string | $command, | ||
int | $parameter = null , |
||
$state = null |
|||
) |
A table of content allows the user to get an overview over the generally available content in the object.The command will be enhanced with a parameter defined here on in the locator builder.If a parameter is defined here, the view provides an overview-page.
LogicException if view wants to introduce a second TOC.
mixed | $state | one of the STATE_ constants from TOCBuilder |
Implements ILIAS\KioskMode\ControlBuilder.
Definition at line 274 of file LSControlBuilder.php.
LSControlBuilder::toggle | ( | string | $label, |
string | $on_command, | ||
string | $off_command | ||
) |
A toggle can be used to switch some behaviour in the view on or of.
Implements ILIAS\KioskMode\ControlBuilder.
Definition at line 236 of file LSControlBuilder.php.
|
protected |
Definition at line 84 of file LSControlBuilder.php.
|
protected |
Definition at line 44 of file LSControlBuilder.php.
Referenced by getControls().
|
protected |
Definition at line 39 of file LSControlBuilder.php.
Referenced by getDoneControl().
|
protected |
Definition at line 24 of file LSControlBuilder.php.
Referenced by getExitControl().
|
protected |
Definition at line 89 of file LSControlBuilder.php.
Referenced by __construct().
|
protected |
Definition at line 64 of file LSControlBuilder.php.
Referenced by getLocator(), and locator().
|
protected |
Definition at line 54 of file LSControlBuilder.php.
Referenced by getModeControls().
|
protected |
Definition at line 34 of file LSControlBuilder.php.
Referenced by getNextControl().
|
protected |
Definition at line 29 of file LSControlBuilder.php.
Referenced by getPreviousControl().
|
protected |
Definition at line 79 of file LSControlBuilder.php.
|
protected |
Definition at line 59 of file LSControlBuilder.php.
Referenced by getToc().
|
protected |
Definition at line 49 of file LSControlBuilder.php.
Referenced by getToggles().
|
protected |
Definition at line 69 of file LSControlBuilder.php.
Referenced by __construct().
|
protected |
Definition at line 74 of file LSControlBuilder.php.
Referenced by __construct().
const LSControlBuilder::CMD_CHECK_CURRENT_ITEM_LP = 'ccilp' |
Definition at line 18 of file LSControlBuilder.php.
Referenced by ilObjLearningSequenceGUI\executeCommand().
const LSControlBuilder::CMD_START_OBJECT = 'start_legacy_obj' |
Definition at line 17 of file LSControlBuilder.php.
const LSControlBuilder::PARAM_LP_CURRENT_ITEM_OBJID = 'ccilpobjid' |
Definition at line 19 of file LSControlBuilder.php.
Referenced by ilObjLearningSequenceGUI\executeCommand().