40 $this->log->debug(sprintf(
41 'Evaluating criteria for document "%s" (id: %s) and user "%s" (id: %s)',
44 $this->
user->getLogin(),
48 foreach ($document->
criteria() as $criterionAssignment) {
51 $criterionType = $this->criterionTypeFactory->findByTypeIdent($criterionAssignment->getCriterionId(),
true);
53 $result = $criterionType->evaluate($this->
user, $criterionAssignment->getCriterionValue());
55 $this->log->debug(sprintf(
56 'Criterion of type "%s", configured with %s evaluated: %s',
57 $criterionType->getTypeIdent(),
58 var_export($criterionAssignment->getCriterionValue()->toJson(),
true),
59 var_export($result,
true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilAccessibilityCriterionTypeFactoryInterface $criterionTypeFactory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
evaluate(ilAccessibilitySignableDocument $document)
__construct(ilAccessibilityCriterionTypeFactoryInterface $criterionTypeFactory, ilObjUser $user, ilLogger $log)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...