Definition at line 31 of file ConfigurationRepository.php.
◆ __construct()
| ILIAS\Questions\Administration\ConfigurationRepository::__construct |
( |
private readonly \ilSetting |
$common_settings, |
|
|
private readonly UserSetting |
$user_setting_create_mode, |
|
|
private readonly \ilSetting |
$questions_settings |
|
) |
| |
◆ getGlobalCreateMode()
| ILIAS\Questions\Administration\ConfigurationRepository::getGlobalCreateMode |
( |
| ) |
|
Definition at line 47 of file ConfigurationRepository.php.
48 {
49 return CreateModes::tryFrom(
50 $this->questions_settings->get(
51 self::SETTINGS_KEY_CREATE_MODE,
52 ''
53 )
54 ) ?? CreateModes::getDefaultMode();
55 }
◆ getInputForCreateMode()
| ILIAS\Questions\Administration\ConfigurationRepository::getInputForCreateMode |
( |
FieldFactory |
$field_factory, |
|
|
Language |
$lng, |
|
|
Refinery |
$refinery |
|
) |
| |
Definition at line 73 of file ConfigurationRepository.php.
77 : Input {
78 return $this->user_setting_create_mode->getInput(
79 $field_factory,
82 $this->common_settings
83 );
84 }
◆ isCreateModeChangeableByUser()
| ILIAS\Questions\Administration\ConfigurationRepository::isCreateModeChangeableByUser |
( |
| ) |
|
◆ isCreateModeSimple()
| ILIAS\Questions\Administration\ConfigurationRepository::isCreateModeSimple |
( |
DefaultEnvironment |
$environment | ) |
|
◆ persistCreateMode()
| ILIAS\Questions\Administration\ConfigurationRepository::persistCreateMode |
( |
CreateModes |
$create_mode | ) |
|
Definition at line 64 of file ConfigurationRepository.php.
66 : void {
67 $this->questions_settings->set(
68 self::SETTINGS_KEY_CREATE_MODE,
69 $create_mode->value
70 );
71 }
◆ SETTINGS_KEY_CREATE_MODE
| const string ILIAS\Questions\Administration\ConfigurationRepository::SETTINGS_KEY_CREATE_MODE = 'default_create_mode' |
|
private |
The documentation for this class was generated from the following file: