Méthode | Description | |
---|---|---|
deleteAllConsents ( string $userId ) : mixed | Delete all consents. | |
deleteConsent ( string $userId, string $destinationId ) : mixed | Delete consent. | |
getConsents ( string $userId ) : array | Retrieve consents. | |
getStatistics ( ) : mixed | Get statistics for all consent given in the consent store | |
hasConsent ( string $userId, string $destinationId, string $attributeSet ) : boolean | Check for consent. | |
parseStoreConfig ( mixed $config ) : sspmod_consent_Store | Parse consent storage configuration. | |
saveConsent ( string $userId, string $destinationId, string $attributeSet ) : boolean | Save consent. |
Méthode | Description | |
---|---|---|
__construct ( &$config ) | Constructor for the base class. |
protected __construct ( &$config ) |
public deleteAllConsents ( string $userId ) : mixed | ||
$userId | string | The hash identifying the user at an IdP. |
Résultat | mixed | Should be the number of consent removed |
abstract public getConsents ( string $userId ) : array | ||
$userId | string | The hash identifying the user at an IdP. |
Résultat | array | Array of all destination ids the user has given consent for. |
public getStatistics ( ) : mixed | ||
Résultat | mixed | Statistics from the consent store |
abstract public hasConsent ( string $userId, string $destinationId, string $attributeSet ) : boolean | ||
$userId | string | The hash identifying the user at an IdP. |
$destinationId | string | A string which identifyes the destination. |
$attributeSet | string | A hash which identifies the attributes. |
Résultat | boolean | True if the user has given consent earlier, false if not (or on error). |
public static parseStoreConfig ( mixed $config ) : sspmod_consent_Store | ||
$config | mixed | The configuration. |
Résultat | sspmod_consent_Store | An object which implements the sspmod_consent_Store class. |
abstract public saveConsent ( string $userId, string $destinationId, string $attributeSet ) : boolean | ||
$userId | string | The hash identifying the user at an IdP. |
$destinationId | string | A string which identifyes the destination. |
$attributeSet | string | A hash which identifies the attributes. |
Résultat | boolean | True if consent is succesfully saved otherwise false. |