ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
SettingDefinition.php
Go to the documentation of this file.
1<?php
2
19namespace ILIAS\User\Settings;
20
25use ILIAS\Refinery\Factory as Refinery;
26
27interface SettingDefinition extends Property
28{
36 public function isAvailable(): bool;
37
38 public function getSettingsPage(): AvailablePages;
39
42 \ilSetting $settings
43 ): ?string;
44
46 \ilSetting $settings,
47 \ilObjUser $user
48 ): bool;
49
50 public function getInput(
51 FieldFactory $field_factory,
54 \ilSetting $settings,
55 ?\ilObjUser $user = null
56 ): Input;
57
63 public function getLegacyInput(
65 \ilSetting $settings,
66 ?\ilObjUser $user = null
68
77 public function persistUserInput(
78 \ilObjUser $user,
79 mixed $input
80 ): \ilObjUser;
81}
Builds data types.
Definition: Factory.php:36
This class represents a property in a property form.
User class.
ILIAS Setting Class.
This is what a factory for input fields looks like.
Definition: Factory.php:31
This describes commonalities between all inputs.
Definition: Input.php:47
getInput(FieldFactory $field_factory, Language $lng, Refinery $refinery, \ilSetting $settings, ?\ilObjUser $user=null)
isAvailable()
If this function returns false the setting will not be shown, even if it's PropertyAttributes would a...
getLegacyInput(Language $lng, \ilSetting $settings, ?\ilObjUser $user=null)
You don't need to add a post_var to the input as the User will handle this for you,...
persistUserInput(\ilObjUser $user, mixed $input)
hasUserPersonalizedSetting(\ilSetting $settings, \ilObjUser $user)
getDefaultValueForDisplay(Language $lng, \ilSetting $settings)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $lng
Definition: privfeed.php:31