49 if (null === $this->matchingDocuments) {
50 $this->matchingDocuments = [];
52 $this->log->debug(sprintf(
53 'Evaluating document for user "%s" (id: %s) ...',
54 $this->
user->getLogin(),
58 foreach ($this->possibleDocuments as $document) {
59 if ($this->evaluation->evaluate($document)) {
60 $this->matchingDocuments[] = $document;
64 $this->log->debug(sprintf(
65 '%s matching document(s) found',
66 count($this->matchingDocuments)
83 throw new \ilTermsOfServiceNoSignableDocumentFoundException(sprintf(
84 'Could not find any terms of service document for the passed user (id: %s|login: %s)',
86 $this->
user->getLogin()
Interface ilTermsOfServiceSequentialDocumentEvaluation.
Interface ilTermsOfServiceDocumentEvaluation.
__construct(\ilTermsOfServiceDocumentCriteriaEvaluation $evaluation, \ilObjUser $user, \ilLogger $log, array $possibleDocuments)
ilTermsOfServiceDocumentLogicalAndCriteriaEvaluation constructor.
Interface ilTermsOfServiceDocumentCriteriaEvaluation.
Interface ilTermsOfServiceSignableDocument.
Component logger with individual log levels by component id.