42 if (!($object instanceof $objectClassName)) {
43 throw new \LogicException(
44 "Provided object of class '" . get_class($object) .
"' does not " .
50 throw new \RuntimeException(
51 "User is not allowed to access the kiosk mode for the supplied object."
An exception for terminatinating execution or to throw for unit testing.
This class provides processing control methods.
Base class to be implemented and put in class-directory of module with the name il$MODULEKioskModeVie...
__construct(\ilObject $object, \ilCtrl $ctrl, \ilLanguage $lng, \ilAccessHandler $access)
getObjectClass()
Get the class of objects this view displays.
setObject(\ilObject $object)
Set the object for this view.
hasPermissionToAccessKioskMode()
Check if the global user has permission to access the kiosk mode of the supplied object.
Class ilObject Basic functions for all objects.
A kiosk mode view on a certain object.
Interface ilAccessHandler.