ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | ||||
__construct (Data\Factory $data_factory, \ilLanguage $lng) | ||||
IsNull constructor. More... | ||||
Public Member Functions inherited from ILIAS\Validation\Constraints\Custom | ||||
__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).
| ||||
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).
| ||||
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()).
| ||||
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... | ||||
Additional Inherited Members | |
Protected Member Functions inherited from ILIAS\Validation\Constraints\Custom | |
getLngClosure () | |
Get the closure to be passed to the error-function that does i18n and sprintf. More... | |
Protected Attributes inherited from ILIAS\Validation\Constraints\Custom | |
$data_factory | |
$lng | |
$is_ok | |
$error | |
Definition at line 17 of file IsNull.php.
ILIAS\Validation\Constraints\IsNull::__construct | ( | Data\Factory | $data_factory, |
\ilLanguage | $lng | ||
) |
IsNull constructor.
Data\Factory | $data_factory |
Definition at line 25 of file IsNull.php.
References ILIAS\Validation\Constraints\Custom\$data_factory, ILIAS\Validation\Constraints\Custom\$lng, and $txt.