|
ILIAS
release_8 Revision v8.24
|
Inheritance diagram for ilContentPageKioskModeView:
Collaboration diagram for ilContentPageKioskModeView: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) | |
Public Member Functions inherited from ilKioskModeView | |
| __construct (ilObject $object, ilCtrl $ctrl, ilLanguage $lng, ilAccessHandler $access) | |
Public Member Functions inherited from ILIAS\KioskMode\View | |
| 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, 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 () | |
| 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... | |
| 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 |
Protected Attributes inherited from ilKioskModeView | |
| 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().
Here is the call graph for this function:| 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(), CMD_LP_TO_COMPLETED, CMD_LP_TO_INCOMPLETE, ILIAS\KioskMode\ControlBuilder\generic(), ilObjectLP\getInstance(), ILIAS\Repository\lng(), ilLPObjSettings\LP_MODE_MANUAL, and ILIAS\Repository\user().
Referenced by buildControls().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get the class of objects this view displays.
Reimplemented from ilKioskModeView.
Definition at line 49 of file class.ilContentPageKioskModeView.php.
|
protected |
Check if the global user has permission to access the kiosk mode of the supplied object.
Reimplemented from ilKioskModeView.
Definition at line 73 of file class.ilContentPageKioskModeView.php.
References ILIAS\Repository\access().
Here is the call graph for this function:| ilContentPageKioskModeView::render | ( | State | $state, |
| Factory | $factory, | ||
| URLBuilder | $url_builder, | ||
| array | $post = null |
||
| ) |
Definition at line 148 of file class.ilContentPageKioskModeView.php.
|
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().
Here is the call graph for this function:
|
protected |
Set the object for this view.
This makes it possible to use an appropriately typehinted member variable to allow for static code analysis. Sadly PHP has no generics...
Reimplemented from ilKioskModeView.
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().
Here is the call graph for this function:
|
protected |
Definition at line 117 of file class.ilContentPageKioskModeView.php.
References ilLPStatusWrapper\_updateStatus(), CMD_LP_TO_COMPLETED, ilObjectLP\getInstance(), ILIAS\Repository\lng(), and ilLPObjSettings\LP_MODE_MANUAL.
Referenced by updateGet().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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.
Referenced by buildLearningProgressToggleControl(), and toggleLearningProgress().
|
private |
Definition at line 34 of file class.ilContentPageKioskModeView.php.
Referenced by buildLearningProgressToggleControl().