ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilDummyKioskModeView Class Reference
+ Inheritance diagram for ilDummyKioskModeView:
+ Collaboration diagram for ilDummyKioskModeView:

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
 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 ()
 
- Protected Member Functions inherited from ilKioskModeView
 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...
 

Additional Inherited Members

- Protected Attributes inherited from ilKioskModeView
ilCtrl $ctrl
 
ilLanguage $lng
 
ilAccessHandler $access
 

Detailed Description

Definition at line 11 of file class.ilDummyKioskModeView.php.

Member Function Documentation

◆ buildControls()

ilDummyKioskModeView::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 32 of file class.ilDummyKioskModeView.php.

33  {
34  }

◆ buildInitialState()

ilDummyKioskModeView::buildInitialState ( State  $empty_state)

Build an initial state based on the Provided empty state.

Implements ILIAS\KioskMode\View.

Definition at line 27 of file class.ilDummyKioskModeView.php.

27  : State
28  {
29  return new State();
30  }
Keeps the state of a view in a simple stringly type key-value store.
Definition: State.php:12

◆ getObjectClass()

ilDummyKioskModeView::getObjectClass ( )
protected

Definition at line 13 of file class.ilDummyKioskModeView.php.

13  : string
14  {
15  return'ilObject';
16  }

◆ hasPermissionToAccessKioskMode()

ilDummyKioskModeView::hasPermissionToAccessKioskMode ( )
protected

Definition at line 22 of file class.ilDummyKioskModeView.php.

22  : bool
23  {
24  return true;
25  }

◆ render()

ilDummyKioskModeView::render ( State  $state,
Factory  $factory,
URLBuilder  $url_builder,
array  $post = null 
)

Definition at line 49 of file class.ilDummyKioskModeView.php.

54  : Component {
56  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ setObject()

ilDummyKioskModeView::setObject ( ilObject  $object)
protected

Definition at line 18 of file class.ilDummyKioskModeView.php.

19  {
20  }

◆ updateGet()

ilDummyKioskModeView::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 36 of file class.ilDummyKioskModeView.php.

40  : State {
41  return new State();
42  }
Keeps the state of a view in a simple stringly type key-value store.
Definition: State.php:12

◆ updatePost()

ilDummyKioskModeView::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 44 of file class.ilDummyKioskModeView.php.

44  : State
45  {
46  return new State();
47  }
Keeps the state of a view in a simple stringly type key-value store.
Definition: State.php:12

The documentation for this class was generated from the following file: