ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Public Member Functions | ||||||
__construct (Data\Factory $data_factory, \ilLanguage $lng) | ||||||
![]() | ||||||
__construct (callable $is_ok, $error, Data\Factory $data_factory, \ilLanguage $lng) | ||||||
If $error is a callable it needs to take two parameters: More... | ||||||
check ($value) | ||||||
Checks the provided value.Should not throw if accepts($value).
UnexpectedValueException if value does not comply with encoded constraint.
| ||||||
accepts ($value) | ||||||
Tells if the provided value complies.
| ||||||
problemWith ($value) | ||||||
Tells what the problem with the provided value is.Should return null if accepts($value).
| ||||||
applyTo (Result $result) | ||||||
Restricts a Result.Must do nothing with the result if $result->isError(). Must replace the result with an error according to problemWith() if !accepts($result->value()).
| ||||||
withProblemBuilder (callable $builder) | ||||||
Get a constraint like this one with a builder for a custom error message.problemWith() must return an error message according to the new builder for the new constraint.The builder needs to be callable that takes two parameters:
| ||||||
getErrorMessage ($value) | ||||||
Get the problem message. More... | ||||||
check ($value) | ||||||
Checks the provided value. More... | ||||||
accepts ($value) | ||||||
Tells if the provided value complies. More... | ||||||
problemWith ($value) | ||||||
Tells what the problem with the provided value is. More... | ||||||
applyTo (Result $result) | ||||||
Restricts a Result. More... | ||||||
withProblemBuilder (callable $builder) | ||||||
Get a constraint like this one with a builder for a custom error message. More... | ||||||
![]() | ||||||
transform ($from) | ||||||
Perform the transformation. More... | ||||||
applyTo (Result $data) | ||||||
Perform the transformation and reify possible failures. More... | ||||||
__invoke ($from) | ||||||
Transformations should be callable. More... | ||||||
Additional Inherited Members | |
![]() | |
getLngClosure () | |
Get the closure to be passed to the error-function that does i18n and sprintf. More... | |
![]() | |
$data_factory | |
$lng | |
$is_ok | |
$error | |
Definition at line 10 of file HasLowerChars.php.
ILIAS\Refinery\Password\HasLowerChars::__construct | ( | Data\Factory | $data_factory, |
\ilLanguage | $lng | ||
) |
Definition at line 12 of file HasLowerChars.php.
References ILIAS\Refinery\Custom\Constraint\$data_factory, ILIAS\Refinery\Custom\Constraint\$lng, and ILIAS\GlobalScreen\Provider\__construct().