ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
|
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) | |
![]() | |
__construct (ilObject $object, ilCtrl $ctrl, ilLanguage $lng, ilAccessHandler $access) | |
![]() | |
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 () | |
hasPermissionToAccessKioskMode () | |
buildLearningProgressToggleControl (ControlBuilder $builder) | |
toggleLearningProgress () | |
![]() | |
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 | |
ilObjFile | $file_obj |
ilObjUser | $user |
Factory | $ui_factory |
Renderer | $ui_renderer |
ilGlobalTemplateInterface | $main_template |
GlobalHttpState | $http |
Refinery | $refinery |
ilTabsGUI | $tabs |
array | $messages = [] |
![]() | |
ilCtrl | $ctrl |
ilLanguage | $lng |
ilAccessHandler | $access |
Private Attributes | |
const | CMD_TOGGLE_LEARNING_PROGRESS = 'toggleManualLearningProgress' |
Definition at line 34 of file class.ilFileKioskModeView.php.
ilFileKioskModeView::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 84 of file class.ilFileKioskModeView.php.
References $learning_progress, buildLearningProgressToggleControl(), ilObjectLP\getInstance(), and ilLPObjSettings\LP_MODE_MANUAL.
ilFileKioskModeView::buildInitialState | ( | State | $empty_state | ) |
Build an initial state based on the Provided empty state.
Implements ILIAS\KioskMode\View.
Definition at line 79 of file class.ilFileKioskModeView.php.
|
protected |
Definition at line 112 of file class.ilFileKioskModeView.php.
References ilLPStatus\_hasUserCompleted(), ILIAS\KioskMode\ControlBuilder\generic(), ILIAS\Repository\lng(), and ILIAS\Repository\user().
Referenced by buildControls().
|
protected |
Definition at line 52 of file class.ilFileKioskModeView.php.
References $DIC, ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), ILIAS\Repository\refinery(), ilKioskModeView\setObject(), ILIAS\Repository\tabs(), and ILIAS\Repository\user().
|
protected |
Definition at line 74 of file class.ilFileKioskModeView.php.
References ILIAS\Repository\access().
ilFileKioskModeView::render | ( | State | $state, |
Factory | $factory, | ||
URLBuilder | $url_builder, | ||
?array | $post = null |
||
) |
Definition at line 106 of file class.ilFileKioskModeView.php.
References ILIAS\UI\Factory\legacy().
|
protected |
Definition at line 128 of file class.ilFileKioskModeView.php.
References ilLPStatus\_hasUserCompleted(), ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM, ILIAS\Repository\user(), and ilLPStatus\writeStatus().
Referenced by updateGet().
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 93 of file class.ilFileKioskModeView.php.
References toggleLearningProgress().
ilFileKioskModeView::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 101 of file class.ilFileKioskModeView.php.
|
protected |
Definition at line 41 of file class.ilFileKioskModeView.php.
|
protected |
Definition at line 46 of file class.ilFileKioskModeView.php.
|
protected |
Definition at line 45 of file class.ilFileKioskModeView.php.
|
protected |
Definition at line 50 of file class.ilFileKioskModeView.php.
|
protected |
Definition at line 47 of file class.ilFileKioskModeView.php.
|
protected |
Definition at line 48 of file class.ilFileKioskModeView.php.
|
protected |
Definition at line 43 of file class.ilFileKioskModeView.php.
|
protected |
Definition at line 44 of file class.ilFileKioskModeView.php.
|
protected |
Definition at line 42 of file class.ilFileKioskModeView.php.
|
private |
Definition at line 39 of file class.ilFileKioskModeView.php.