ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
Password.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
30
32{
33 public function getIdentifier(): string
34 {
35 return 'password';
36 }
37
38 public function isAvailable(): bool
39 {
40 return true;
41 }
42
43 public function getLabel(Language $lng): string
44 {
45 return $lng->txt($this->getIdentifier());
46 }
47
49 {
51 }
52
53 public function getSection(): AvailableSections
54 {
55 return AvailableSections::Main;
56 }
57
58 public function getInput(
59 FieldFactory $field_factory,
62 \ilSetting $settings,
63 ?\ilObjUser $user = null
64 ): Input {
65 throw new \Exception('This Setting does not provide an Input.');
66 }
67
68 public function getLegacyInput(
70 \ilSetting $settings,
71 ?\ilObjUser $current_user = null
73 throw new \Exception('This Setting does not provide an Input.');
74 }
75
78 \ilSetting $settings
79 ): null {
80 return null;
81 }
82
84 \ilSetting $settings,
85 \ilObjUser $current_user
86 ): bool {
88 }
89
90 public function persistUserInput(
91 \ilObjUser $current_user,
92 mixed $input
93 ): \ilObjUser {
94 throw new \Exception('We do cannot store this Setting.');
95 }
96
97 public function retrieveValueFromUser(\ilObjUser $current_user): null
98 {
99 return null;
100 }
101}
getLegacyInput(Language $lng, \ilSetting $settings, ?\ilObjUser $current_user=null)
You don't need to add a post_var to the input as the User will handle this for you,...
Definition: Password.php:68
getDefaultValueForDisplay(Language $lng, \ilSetting $settings)
Definition: Password.php:76
persistUserInput(\ilObjUser $current_user, mixed $input)
Definition: Password.php:90
getInput(FieldFactory $field_factory, Language $lng, Refinery $refinery, \ilSetting $settings, ?\ilObjUser $user=null)
Definition: Password.php:58
isAvailable()
If this function returns false the setting will not be shown, even if it's PropertyAttributes would a...
Definition: Password.php:38
hasUserPersonalizedSetting(\ilSetting $settings, \ilObjUser $current_user)
Definition: Password.php:83
retrieveValueFromUser(\ilObjUser $current_user)
Definition: Password.php:97
Builds data types.
Definition: Factory.php:36
return true
This class represents a property in a property form.
User class.
ILIAS Setting Class.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This is what a factory for input fields looks like.
Definition: Factory.php:31
This describes commonalities between all inputs.
Definition: Input.php:47
global $lng
Definition: privfeed.php:31