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");
An exception for terminatinating execution or to throw for unit testing.
Class ilTermsOfServiceTableDataProviderFactory.
getByContext(string $context)
const CONTEXT_ACCEPTANCE_HISTORY
getExceptionByMember($member)
validateConfiguration(array $mandatoryMemberVariables)
Interface ilTermsOfServiceTableDataProvider.