ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
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) | |
@inheritDoc More... | |
accepts ($value) | |
@inheritDoc More... | |
problemWith ($value) | |
@inheritDoc More... | |
applyTo (Result $result) | |
@inheritDoc 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 $result) | |
Perform the transformation and reify possible failures. More... | |
__invoke ($from) | |
Transformations should be callable. More... | |
Protected Member Functions | |
getError () | |
@inheritDoc More... | |
Protected Attributes | |
Data Factory | $data_factory |
ILIAS Language Language | $lng |
$is_ok | |
$error | |
Definition at line 30 of file Constraint.php.
ILIAS\Refinery\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\Refinery\Custom\Constraint\$data_factory, ILIAS\Refinery\Custom\Constraint\$error, ILIAS\Refinery\Custom\Constraint\$is_ok, ILIAS\Refinery\Custom\Constraint\$lng, error(), and ILIAS\Repository\lng().
|
final |
@inheritDoc
Implements ILIAS\Refinery\Constraint.
Definition at line 86 of file Constraint.php.
Referenced by ILIAS\Refinery\Custom\Constraint\check(), and ILIAS\Refinery\Custom\Constraint\problemWith().
|
final |
@inheritDoc
Implements ILIAS\Refinery\Constraint.
Definition at line 106 of file Constraint.php.
References ILIAS\Refinery\Custom\Constraint\$error, ILIAS\Data\Result\isError(), ILIAS\Refinery\Custom\Constraint\problemWith(), and ILIAS\Data\Result\value().
|
final |
@inheritDoc
Implements ILIAS\Refinery\Constraint.
Definition at line 74 of file Constraint.php.
References ILIAS\Refinery\Custom\Constraint\accepts(), and ILIAS\Refinery\getErrorMessage().
|
protected |
@inheritDoc
Definition at line 66 of file Constraint.php.
References ILIAS\Refinery\Custom\Constraint\$error.
|
final |
@inheritDoc
Implements ILIAS\Refinery\Constraint.
Definition at line 94 of file Constraint.php.
References ILIAS\Refinery\Custom\Constraint\accepts(), and ILIAS\Refinery\getErrorMessage().
Referenced by ILIAS\Refinery\Custom\Constraint\applyTo().
Definition at line 36 of file Constraint.php.
Referenced by ILIAS\Refinery\Custom\Constraint\__construct().
|
protected |
Definition at line 41 of file Constraint.php.
Referenced by ILIAS\Refinery\Custom\Constraint\__construct(), ILIAS\Refinery\Custom\Constraint\applyTo(), and ILIAS\Refinery\Custom\Constraint\getError().
|
protected |
Definition at line 39 of file Constraint.php.
Referenced by ILIAS\Refinery\Custom\Constraint\__construct().
Definition at line 37 of file Constraint.php.
Referenced by ILIAS\Refinery\Custom\Constraint\__construct(), and ilAccessibilityDocumentCriterionAssignmentConstraint\__construct().