ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
buildInitialState (State $empty_state) | |
Build an initial state based on the Provided empty state. More... | |
buildControls (State $state, ControlBuilder $builder) | |
Construct the controls for the view based on the current state. More... | |
updateGet (State $state, string $command, int $parameter=null) | |
Update the state based on the provided command. More... | |
updatePost (State $state, string $command, array $post) | |
Update the state and the object based on the provided command and post-data. More... | |
render (State $state, Factory $factory, URLBuilder $url_builder, array $post=null) | |
![]() | |
__construct (ilObject $object, ilCtrl $ctrl, ilLanguage $lng, ilAccessHandler $access) | |
![]() | |
render (State $state, UI\Factory $factory, URLBuilder $url_builder, array $post=null) | |
Render a state using the ui-factory and URLs from the builder. More... | |
Protected Member Functions | |
getObjectClass () | |
setObject (ilObject $object) | |
hasPermissionToAccessKioskMode () | |
buildLearningProgressToggleControl (ControlBuilder $builder) | |
toggleLearningProgress (string $command) | |
renderContentStyle () | |
Renders the content style of a ContentPage object into main template. More... | |
![]() | |
getObjectClass () | |
Get the class of objects this view displays. More... | |
setObject (ilObject $object) | |
Set the object for this view. More... | |
hasPermissionToAccessKioskMode () | |
Check if the global user has permission to access the kiosk mode of the supplied object. More... | |
Protected Attributes | |
ilObjContentPage | $contentPageObject |
ilObjUser | $user |
Factory | $uiFactory |
Renderer | $uiRenderer |
ilGlobalTemplateInterface | $mainTemplate |
GlobalHttpState | $http |
Refinery | $refinery |
ilTabsGUI | $tabs |
array | $messages = [] |
ILIAS Style Content Object ObjectFacade | $content_style_domain |
ILIAS Style Content GUIService | $content_style_gui |
![]() | |
ilCtrl | $ctrl |
ilLanguage | $lng |
ilAccessHandler | $access |
Private Attributes | |
const | CMD_LP_TO_COMPLETED = 'lp_completed' |
const | CMD_LP_TO_INCOMPLETE = 'lp_incomplete' |
Definition at line 31 of file class.ilContentPageKioskModeView.php.
ilContentPageKioskModeView::buildControls | ( | State | $state, |
ControlBuilder | $builder | ||
) |
Construct the controls for the view based on the current state.
The interaction with the controls build via the ControlBuilder will always be delegated to updateGet.
Implements ILIAS\KioskMode\View.
Definition at line 83 of file class.ilContentPageKioskModeView.php.
References buildLearningProgressToggleControl().
ilContentPageKioskModeView::buildInitialState | ( | State | $empty_state | ) |
Build an initial state based on the Provided empty state.
Implements ILIAS\KioskMode\View.
Definition at line 78 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 88 of file class.ilContentPageKioskModeView.php.
References ilLPMarks\_hasCompleted(), ILIAS\KioskMode\ControlBuilder\generic(), ilObjectLP\getInstance(), ILIAS\Repository\lng(), ilLPObjSettings\LP_MODE_MANUAL, and ILIAS\Repository\user().
Referenced by buildControls().
|
protected |
Definition at line 49 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 73 of file class.ilContentPageKioskModeView.php.
References ILIAS\Repository\access().
ilContentPageKioskModeView::render | ( | State | $state, |
Factory | $factory, | ||
URLBuilder | $url_builder, | ||
array | $post = null |
||
) |
Definition at line 148 of file class.ilContentPageKioskModeView.php.
References ilLearningProgress\_tracProgress(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\UI\Factory\legacy(), ILIAS\Repository\lng(), ilContentPagePageCommandForwarder\PRESENTATION_MODE_EMBEDDED_PRESENTATION, ILIAS\Repository\refinery(), renderContentStyle(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
|
protected |
Renders the content style of a ContentPage object into main template.
Definition at line 188 of file class.ilContentPageKioskModeView.php.
References ilObjStyleSheet\getSyntaxStylePath(), and ILIAS\Repository\mainTemplate().
Referenced by render().
|
protected |
Definition at line 54 of file class.ilContentPageKioskModeView.php.
References $DIC, ILIAS\Repository\ctrl(), ilObject\getRefId(), ILIAS\FileDelivery\http(), ILIAS\Repository\mainTemplate(), ILIAS\Repository\refinery(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
|
protected |
Definition at line 117 of file class.ilContentPageKioskModeView.php.
References ilLPStatusWrapper\_updateStatus(), ilLPMarks\getCompleted(), ilObjectLP\getInstance(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ilLPObjSettings\LP_MODE_MANUAL, and ILIAS\Repository\user().
Referenced by updateGet().
ilContentPageKioskModeView::updateGet | ( | State | $state, |
string | $command, | ||
int | $parameter = null |
||
) |
Update the state based on the provided command.
If the update was caused by a control with a $parameter (see ControlBuilder) that value is passed to $parameter here.
Commands and parameters are defined by the view in buildControl
.
Implements ILIAS\KioskMode\View.
Definition at line 110 of file class.ilContentPageKioskModeView.php.
References toggleLearningProgress().
ilContentPageKioskModeView::updatePost | ( | State | $state, |
string | $command, | ||
array | $post | ||
) |
Update the state and the object based on the provided command and post-data.
Commands are defined via the url-builder provided to render.
The POSTed data will be passed via $post.
Implements ILIAS\KioskMode\View.
Definition at line 143 of file class.ilContentPageKioskModeView.php.
Definition at line 46 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 47 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 36 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 41 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 40 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 45 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 42 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 43 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 38 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 39 of file class.ilContentPageKioskModeView.php.
|
protected |
Definition at line 37 of file class.ilContentPageKioskModeView.php.
|
private |
Definition at line 33 of file class.ilContentPageKioskModeView.php.
|
private |
Definition at line 34 of file class.ilContentPageKioskModeView.php.