|
| __construct (int $max, 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).- Exceptions
-
More...
|
|
| accepts ($value) |
| Tells if the provided value complies.- Parameters
-
- Returns
- bool
More...
|
|
| problemWith ($value) |
| Tells what the problem with the provided value is.Should return null if accepts($value).- Parameters
-
- Returns
- string|null
More...
|
|
| restrict (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()).- Parameters
-
- Returns
- Result
More...
|
|
| 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:- Parameters
-
- Returns
- Constraint
More...
|
|
| getErrorMessage ($value) |
| Get the problem message. More...
|
|
|
| getLngClosure () |
| Get the closure to be passed to the error-function that does i18n and sprintf. More...
|
|
Definition at line 10 of file LessThan.php.
◆ __construct()
◆ $max
ILIAS\Validation\Constraints\LessThan::$max |
|
protected |
The documentation for this class was generated from the following file: