PHP Class SimpleSAML_Metadata_MetaDataStorageHandlerSerialize, simplesamlphp

Inheritance: extends SimpleSAML_Metadata_MetaDataStorageSource
Afficher le fichier Open project: simplesamlphp/simplesamlphp Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $config ) Constructor for this metadata handler.
deleteMetadata ( string $entityId, string $set ) Delete a metadata entry.
getMetaData ( string $entityId, string $set ) : array Retrieve a metadata entry.
getMetadataSet ( string $set ) : array Retrieve a list of all available metadata for a given set.
getMetadataSets ( ) : array Retrieve a list of all available metadata sets.
saveMetadata ( string $entityId, string $set, array $metadata ) : boolean Save a metadata entry.

Private Methods

Méthode Description
getMetadataPath ( string $entityId, string $set ) : string Helper function for retrieving the path of a metadata file.

Method Details

__construct() public méthode

Parses configuration.
public __construct ( array $config )
$config array The configuration for this metadata handler.

deleteMetadata() public méthode

Delete a metadata entry.
public deleteMetadata ( string $entityId, string $set )
$entityId string The entityId of the metadata entry.
$set string The metadata set this metadata entry belongs to.

getMetaData() public méthode

Retrieve a metadata entry.
public getMetaData ( string $entityId, string $set ) : array
$entityId string The entityId we are looking up.
$set string The set we are looking for metadata in.
Résultat array An associative array with metadata for the given entity, or NULL if we are unable to locate the entity.

getMetadataSet() public méthode

Retrieve a list of all available metadata for a given set.
public getMetadataSet ( string $set ) : array
$set string The set we are looking for metadata in.
Résultat array An associative array with all the metadata for the given set.

getMetadataSets() public méthode

Retrieve a list of all available metadata sets.
public getMetadataSets ( ) : array
Résultat array An array with the available sets.

saveMetadata() public méthode

Save a metadata entry.
public saveMetadata ( string $entityId, string $set, array $metadata ) : boolean
$entityId string The entityId of the metadata entry.
$set string The metadata set this metadata entry belongs to.
$metadata array The metadata.
Résultat boolean True if successfully saved, false otherwise.