ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Class ilTermsOfServiceDocumentCriterionAssignmentConstraint. More...
Public Member Functions | ||||
__construct (ilTermsOfServiceCriterionTypeFactoryInterface $criterionTypeFactory, ilTermsOfServiceDocument $document, Factory $dataFactory, ilLanguage $lng) | ||||
ilTermsOfServiceDocumentCriterionAssignmentConstraint 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).
| ||||
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()).
| ||||
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... | ||||
![]() | ||||
transform ($from) | ||||
Perform the transformation. More... | ||||
__invoke ($from) | ||||
Transformations should be callable. More... | ||||
Protected Member Functions | |
filterEqualValues (ilTermsOfServiceDocumentCriterionAssignment $value) | |
haveSameNature (ilTermsOfServiceDocumentCriterionAssignment $value, ilTermsOfServiceDocumentCriterionAssignment $otherValue) | |
![]() | |
getLngClosure () | |
Get the closure to be passed to the error-function that does i18n and sprintf. More... | |
Protected Attributes | |
$criterionTypeFactory | |
$document | |
![]() | |
$data_factory | |
$lng | |
$is_ok | |
$error | |
Class ilTermsOfServiceDocumentCriterionAssignmentConstraint.
Definition at line 11 of file class.ilTermsOfServiceDocumentCriterionAssignmentConstraint.php.
ilTermsOfServiceDocumentCriterionAssignmentConstraint::__construct | ( | ilTermsOfServiceCriterionTypeFactoryInterface | $criterionTypeFactory, |
ilTermsOfServiceDocument | $document, | ||
Factory | $dataFactory, | ||
ilLanguage | $lng | ||
) |
ilTermsOfServiceDocumentCriterionAssignmentConstraint constructor.
ilTermsOfServiceCriterionTypeFactoryInterface | $criterionTypeFactory | |
ilTermsOfServiceDocument | $document | |
Factory | $dataFactory | |
ilLanguage | $lng |
Definition at line 26 of file class.ilTermsOfServiceDocumentCriterionAssignmentConstraint.php.
References $criterionTypeFactory, $document, ILIAS\Refinery\Custom\Constraint\$lng, $txt, ILIAS\GlobalScreen\Provider\__construct(), and filterEqualValues().
|
protected |
ilTermsOfServiceDocumentCriterionAssignment | $value |
Definition at line 51 of file class.ilTermsOfServiceDocumentCriterionAssignmentConstraint.php.
References ilTermsOfServiceDocumentCriterionAssignment\equals(), and haveSameNature().
Referenced by __construct().
|
protected |
ilTermsOfServiceDocumentCriterionAssignment | $value | |
ilTermsOfServiceDocumentCriterionAssignment | $otherValue |
Definition at line 85 of file class.ilTermsOfServiceDocumentCriterionAssignmentConstraint.php.
References ilTermsOfServiceDocumentCriterionAssignment\getCriterionId().
Referenced by filterEqualValues().
|
protected |
Definition at line 14 of file class.ilTermsOfServiceDocumentCriterionAssignmentConstraint.php.
Referenced by __construct().
|
protected |
Definition at line 17 of file class.ilTermsOfServiceDocumentCriterionAssignmentConstraint.php.
Referenced by __construct().