25 case self::CONTEXT_ACCEPTANCE_HISTORY:
29 case self::CONTEXT_DOCUMENTS:
30 return new \ilTermsOfServiceDocumentTableDataProvider();
33 throw new \InvalidArgumentException(
'Provider not supported');
43 foreach ($mandatoryMemberVariables as $member) {
44 if (null == $this->{$member}) {
60 return new \ilTermsOfServiceMissingDatabaseAdapterException(
61 'Incomplete factory configuration. Please inject a database adapter.' 65 throw new \InvalidArgumentException(
"Exception for member {$member} not supported");
const CONTEXT_ACCEPTANCE_HISTORY
getByContext(string $context)
Interface ilTermsOfServiceTableDataProvider.
getExceptionByMember($member)
Class ilTermsOfServiceTableDataProviderFactory.
validateConfiguration(array $mandatoryMemberVariables)