ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 25 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 46 of file class.ilDummyKioskModeView.php.

47  {
48  }

◆ buildInitialState()

ilDummyKioskModeView::buildInitialState ( State  $empty_state)

Build an initial state based on the Provided empty state.

Implements ILIAS\KioskMode\View.

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

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

◆ getObjectClass()

ilDummyKioskModeView::getObjectClass ( )
protected

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

27  : string
28  {
29  return'ilObject';
30  }

◆ hasPermissionToAccessKioskMode()

ilDummyKioskModeView::hasPermissionToAccessKioskMode ( )
protected

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

36  : bool
37  {
38  return true;
39  }

◆ render()

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

◆ setObject()

ilDummyKioskModeView::setObject ( ilObject  $object)
protected

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

33  {
34  }

◆ 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 50 of file class.ilDummyKioskModeView.php.

54  : State {
55  return new State();
56  }
Keeps the state of a view in a simple stringly type key-value store.
Definition: State.php:26

◆ 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 58 of file class.ilDummyKioskModeView.php.

58  : State
59  {
60  return new State();
61  }
Keeps the state of a view in a simple stringly type key-value store.
Definition: State.php:26

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