ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Validates that the given string is a valid and executable file path. More...
Public Member Functions | |
__construct (private readonly Language $lng) | |
accepts ($value) | |
Tells if the provided value complies. More... | |
getError () | |
![]() | |
__construct (callable $is_ok, $error, Data\Factory $data_factory, \ILIAS\Language\Language $lng) | |
If $error is a callable it needs to take two parameters: More... | |
check ($value) | |
accepts ($value) | |
problemWith ($value) | |
applyTo (Result $result) | |
![]() | |
withProblemBuilder (callable $builder) | |
Get a constraint like this one with a builder for a custom error message. More... | |
![]() | |
transform ($from) | |
Perform the transformation. More... | |
__invoke ($from) | |
Transformations should be callable. More... | |
Private Attributes | |
$error = 'The value MUST specify an executable path.' | |
Additional Inherited Members | |
![]() | |
getError () | |
![]() | |
Data Factory | $data_factory |
ILIAS Language Language | $lng |
$is_ok | |
$error | |
Validates that the given string is a valid and executable file path.
Definition at line 28 of file IsExecutableTransformation.php.
ILIAS\Refinery\IsExecutableTransformation::__construct | ( | private readonly Language | $lng | ) |
Definition at line 35 of file IsExecutableTransformation.php.
ILIAS\Refinery\IsExecutableTransformation::accepts | ( | $value | ) |
Tells if the provided value complies.
mixed | $value |
Implements ILIAS\Refinery\Constraint.
Definition at line 39 of file IsExecutableTransformation.php.
ILIAS\Refinery\IsExecutableTransformation::getError | ( | ) |
Definition at line 44 of file IsExecutableTransformation.php.
References ILIAS\Refinery\IsExecutableTransformation\$error.
|
private |
Definition at line 33 of file IsExecutableTransformation.php.
Referenced by ILIAS\Refinery\IsExecutableTransformation\getError().