ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Class ilAccessibilityDocumentCriterionAssignmentConstraint. More...
Public Member Functions | ||||||
__construct (ilAccessibilityCriterionTypeFactoryInterface $criterionTypeFactory, ilAccessibilityDocument $document, Factory $dataFactory, ilLanguage $lng) | ||||||
ilAccessibilityDocumentCriterionAssignmentConstraint constructor. More... | ||||||
![]() | ||||||
__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).
UnexpectedValueException if value does not comply with encoded constraint.
| ||||||
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).
| ||||||
applyTo (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()).
| ||||||
![]() | ||||||
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 $data) | ||||||
Perform the transformation and reify possible failures. More... | ||||||
__invoke ($from) | ||||||
Transformations should be callable. More... | ||||||
Protected Member Functions | |
filterEqualValues (ilAccessibilityDocumentCriterionAssignment $value) | |
haveSameNature (ilAccessibilityDocumentCriterionAssignment $value, ilAccessibilityDocumentCriterionAssignment $otherValue) | |
![]() | |
getError () | |
Protected Attributes | |
$criterionTypeFactory | |
$document | |
![]() | |
$data_factory | |
$lng | |
$is_ok | |
$error | |
Class ilAccessibilityDocumentCriterionAssignmentConstraint.
Definition at line 10 of file class.ilAccessibilityDocumentCriterionAssignmentConstraint.php.
ilAccessibilityDocumentCriterionAssignmentConstraint::__construct | ( | ilAccessibilityCriterionTypeFactoryInterface | $criterionTypeFactory, |
ilAccessibilityDocument | $document, | ||
Factory | $dataFactory, | ||
ilLanguage | $lng | ||
) |
ilAccessibilityDocumentCriterionAssignmentConstraint constructor.
ilAccessibilityCriterionTypeFactoryInterface | $criterionTypeFactory | |
ilAccessibilityDocument | $document | |
Factory | $dataFactory | |
ilLanguage | $lng |
Definition at line 25 of file class.ilAccessibilityDocumentCriterionAssignmentConstraint.php.
References $criterionTypeFactory, $document, ILIAS\Refinery\Custom\Constraint\$lng, $txt, ILIAS\GlobalScreen\Provider\__construct(), and filterEqualValues().
|
protected |
ilAccessibilityDocumentCriterionAssignment | $value |
Definition at line 50 of file class.ilAccessibilityDocumentCriterionAssignmentConstraint.php.
References ilAccessibilityDocumentCriterionAssignment\equals(), and haveSameNature().
Referenced by __construct().
|
protected |
ilAccessibilityDocumentCriterionAssignment | $value | |
ilAccessibilityDocumentCriterionAssignment | $otherValue |
Definition at line 84 of file class.ilAccessibilityDocumentCriterionAssignmentConstraint.php.
Referenced by filterEqualValues().
|
protected |
Definition at line 13 of file class.ilAccessibilityDocumentCriterionAssignmentConstraint.php.
Referenced by __construct().
|
protected |
Definition at line 16 of file class.ilAccessibilityDocumentCriterionAssignmentConstraint.php.
Referenced by __construct().