PHP Class sspmod_metarefresh_MetaLoader, simplesamlphp

Author: Andreas Åkre Solberg ([email protected])
显示文件 Open project: simplesamlphp/simplesamlphp Class Usage Examples

Public Methods

Method Description
__construct ( $expire = NULL, $stateFile = NULL, $oldMetadataSrc = NULL ) Constructor
dumpMetadataStdOut ( ) This function writes the metadata to stdout.
getTypes ( ) : array Get the types of entities that will be loaded.
loadSource ( $source ) This function processes a SAML metadata file.
setTypes ( string | array $types ) Set the types of entities that will be loaded.
writeARPfile ( $config ) This function writes the metadata to an ARP file
writeMetadataFiles ( $outputDir ) This function writes the metadata to to separate files in the output directory.
writeMetadataSerialize ( string $outputDir ) Save metadata for loading with the 'serialize' metadata loader.
writeState ( ) This function writes the state array back to disk

Private Methods

Method Description
addCachedMetadata ( $source )
addMetadata ( $filename, $metadata, $type, $template = NULL ) This function adds metadata from the specified file to the list of metadata.
createContext ( $source ) Create HTTP context, with any available caches taken into account
getTime ( )
loadXML ( $data, $source ) Parse XML metadata and return entities
saveState ( $source, $responseHeaders ) Store caching state data for a source

Method Details

__construct() public method

Constructor
public __construct ( $expire = NULL, $stateFile = NULL, $oldMetadataSrc = NULL )

dumpMetadataStdOut() public method

This function writes the metadata to stdout.
public dumpMetadataStdOut ( )

getTypes() public method

Get the types of entities that will be loaded.
public getTypes ( ) : array
return array The entity types allowed.

loadSource() public method

This function processes a SAML metadata file.
public loadSource ( $source )
$source

setTypes() public method

Set the types of entities that will be loaded.
public setTypes ( string | array $types )
$types string | array Either a string with the name of one single type allowed, or an array with a list of types. Pass an empty array to reset to all types of entities.

writeARPfile() public method

This function writes the metadata to an ARP file
public writeARPfile ( $config )

writeMetadataFiles() public method

This function writes the metadata to to separate files in the output directory.
public writeMetadataFiles ( $outputDir )

writeMetadataSerialize() public method

Save metadata for loading with the 'serialize' metadata loader.
public writeMetadataSerialize ( string $outputDir )
$outputDir string The directory we should save the metadata to.

writeState() public method

This function writes the state array back to disk
public writeState ( )