37 abstract public function hasConsent($userId, $destinationId, $attributeSet);
52 abstract public function saveConsent($userId, $destinationId, $attributeSet);
81 throw new Exception(
'Not implemented: deleteAllConsents()');
94 throw new Exception(
'Not implemented: getStatistics()');
129 throw new Exception(
'Invalid configuration for consent store option: '.var_export(
$config,
true));
132 if (!array_key_exists(0,
$config)) {
133 throw new Exception(
'Consent store without name given.');
139 'sspmod_consent_Store'
143 return new $className(
$config);
An exception for terminatinating execution or to throw for unit testing.
static resolveClass($id, $type, $subclass=null)
Resolve module class.
hasConsent($userId, $destinationId, $attributeSet)
Check for consent.
__construct(&$config)
Constructor for the base class.
static parseStoreConfig($config)
Parse consent storage configuration.
deleteConsent($userId, $destinationId)
Delete consent.
saveConsent($userId, $destinationId, $attributeSet)
Save consent.
getStatistics()
Get statistics for all consent given in the consent store.
deleteAllConsents($userId)
Delete all consents.
getConsents($userId)
Retrieve consents.