ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Base class to be implemented and put in class-directory of module with the name il$MODULEKioskModeView (e.g. More...
Public Member Functions | |
__construct (ilObject $object, ilCtrl $ctrl, ilLanguage $lng, ilAccessHandler $access) | |
![]() | |
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... | |
Protected Attributes | |
ilCtrl | $ctrl |
ilLanguage | $lng |
ilAccessHandler | $access |
Base class to be implemented and put in class-directory of module with the name il$MODULEKioskModeView (e.g.
ilTestKioskModeView).
Definition at line 25 of file class.ilKioskModeView.php.
|
final |
LogicException | if an object was provided that does not fit the module this view belongs to. |
RuntimeException | if user is not allowed to access the kiosk mode for the supplied object. |
Definition at line 37 of file class.ilKioskModeView.php.
References $access, $ctrl, $lng, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), getObjectClass(), hasPermissionToAccessKioskMode(), ILIAS\Repository\lng(), and setObject().
|
abstractprotected |
Get the class of objects this view displays.
Referenced by __construct().
|
abstractprotected |
Check if the global user has permission to access the kiosk mode of the supplied object.
Referenced by __construct().
|
abstractprotected |
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...
Referenced by __construct(), ilLearningModuleKioskModeView\getObjectClass(), and ilFileKioskModeView\getObjectClass().
|
protected |
Definition at line 29 of file class.ilKioskModeView.php.
Referenced by __construct().
|
protected |
Definition at line 27 of file class.ilKioskModeView.php.
Referenced by __construct().
|
protected |
Definition at line 28 of file class.ilKioskModeView.php.
Referenced by __construct().