ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Public Member Functions | |
__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... | |
Protected Member Functions | |
getError () | |
Protected Attributes | |
Data Factory | $data_factory |
ILIAS Language Language | $lng |
$is_ok | |
$error | |
Definition at line 30 of file Constraint.php.
ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint::__construct | ( | callable | $is_ok, |
$error, | |||
Data\Factory | $data_factory, | ||
\ILIAS\Language\Language | $lng | ||
) |
If $error is a callable it needs to take two parameters:
callable | $is_ok | |
string | callable | $error | |
Data\Factory | $data_factory | |
\ILIAS\Language\Language | $lng |
Definition at line 55 of file Constraint.php.
References ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\$data_factory, ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\$error, ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\$is_ok, ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\$lng, and ILIAS\Repository\lng().
|
final |
Implements ILIAS\Refinery\Constraint.
Definition at line 86 of file Constraint.php.
Referenced by ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\check(), and ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\problemWith().
|
final |
Implements ILIAS\Refinery\Constraint.
Definition at line 106 of file Constraint.php.
References ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\$error, ILIAS\Data\Result\isError(), null, ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\problemWith(), and ILIAS\Data\Result\value().
|
final |
Implements ILIAS\Refinery\Constraint.
Definition at line 74 of file Constraint.php.
References ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\accepts(), ILIAS\Refinery\getErrorMessage(), and null.
|
protected |
Definition at line 66 of file Constraint.php.
References ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\$error.
|
final |
Implements ILIAS\Refinery\Constraint.
Definition at line 94 of file Constraint.php.
References ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\accepts(), ILIAS\Refinery\getErrorMessage(), and null.
Referenced by ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\applyTo().
|
protected |
Definition at line 36 of file Constraint.php.
Referenced by ILIAS\Refinery\IsNull\__construct(), ILIAS\UI\Implementation\Component\Input\Container\Form\NotEmpty\__construct(), and ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\__construct().
|
protected |
Definition at line 41 of file Constraint.php.
Referenced by ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\__construct(), ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\applyTo(), and ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\getError().
|
protected |
Definition at line 39 of file Constraint.php.
Referenced by ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\__construct().
|
protected |
Definition at line 37 of file Constraint.php.
Referenced by ILIAS\Refinery\IsNull\__construct(), ILIAS\UI\Implementation\Component\Input\Container\Form\NotEmpty\__construct(), ilAccessibilityDocumentCriterionAssignmentConstraint\__construct(), and ILIAS\AdvancedMetaData\Services\ObjectModes\Custom\Custom\Constraint\__construct().