29 foreach ($this->constraints as $key => $constraint) {
30 if (!$constraint->accepts($value)) {
31 $this->failed_constraint = $constraint;
38 function (
$txt, $value) {
39 return $this->failed_constraint->getErrorMessage($value);
A constraint encodes some resrtictions on values.
__construct(array $constraints, Data\Factory $data_factory, \ilLanguage $lng)
__construct(Container $dic, ilPlugin $plugin)