ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($expire=NULL, $stateFile=NULL, $oldMetadataSrc=NULL) | |
Constructor. More... | |
getTypes () | |
Get the types of entities that will be loaded. More... | |
setTypes ($types) | |
Set the types of entities that will be loaded. More... | |
loadSource ($source) | |
This function processes a SAML metadata file. More... | |
writeState () | |
This function writes the state array back to disk. More... | |
dumpMetadataStdOut () | |
This function writes the metadata to stdout. More... | |
writeARPfile ($config) | |
This function writes the metadata to an ARP file. More... | |
writeMetadataFiles ($outputDir) | |
This function writes the metadata to to separate files in the output directory. More... | |
writeMetadataSerialize ($outputDir) | |
Save metadata for loading with the 'serialize' metadata loader. More... | |
Private Member Functions | |
createContext ($source) | |
Create HTTP context, with any available caches taken into account. More... | |
addCachedMetadata ($source) | |
saveState ($source, $responseHeaders) | |
Store caching state data for a source. More... | |
loadXML ($data, $source) | |
Parse XML metadata and return entities. More... | |
addMetadata ($filename, $metadata, $type, $template=NULL) | |
This function adds metadata from the specified file to the list of metadata. More... | |
getTime () | |
Private Attributes | |
$expire | |
$metadata | |
$oldMetadataSrc | |
$stateFile | |
$changed | |
$types | |
Definition at line 6 of file MetaLoader.php.
sspmod_metarefresh_MetaLoader::__construct | ( | $expire = NULL , |
|
$stateFile = NULL , |
|||
$oldMetadataSrc = NULL |
|||
) |
Constructor.
array | $sources | Sources... |
Definition at line 29 of file MetaLoader.php.
References $expire, $oldMetadataSrc, $state, $stateFile, and array.
|
private |
Definition at line 209 of file MetaLoader.php.
References $source, $type, and addMetadata().
Referenced by loadSource().
|
private |
This function adds metadata from the specified file to the list of metadata.
This function will return without making any changes if $metadata is NULL.
$filename | The filename the metadata comes from. |
$metadata | The metadata. |
$type | The metadata type. |
Definition at line 320 of file MetaLoader.php.
Referenced by addCachedMetadata(), and loadSource().
|
private |
Create HTTP context, with any available caches taken into account.
Definition at line 180 of file MetaLoader.php.
References $config, $name, $source, array, and SimpleSAML_Configuration\getInstance().
Referenced by loadSource().
sspmod_metarefresh_MetaLoader::dumpMetadataStdOut | ( | ) |
This function writes the metadata to stdout.
Definition at line 288 of file MetaLoader.php.
References $filename, $m, and getTime().
|
private |
Definition at line 479 of file MetaLoader.php.
Referenced by dumpMetadataStdOut(), saveState(), writeMetadataFiles(), and writeState().
sspmod_metarefresh_MetaLoader::getTypes | ( | ) |
Get the types of entities that will be loaded.
Definition at line 51 of file MetaLoader.php.
References $types.
sspmod_metarefresh_MetaLoader::loadSource | ( | $source | ) |
This function processes a SAML metadata file.
$source |
Definition at line 77 of file MetaLoader.php.
References $data, $source, $template, addCachedMetadata(), addMetadata(), createContext(), SimpleSAML\Logger\debug(), SimpleSAML\Utils\HTTP\fetch(), SimpleSAML\Logger\info(), loadXML(), saveState(), and SimpleSAML\Logger\warning().
|
private |
Parse XML metadata and return entities.
Definition at line 253 of file MetaLoader.php.
References $data, $source, array, SAML2\DOMDocumentFactory\fromString(), and SimpleSAML_Metadata_SAMLParser\parseDescriptorsElement().
Referenced by loadSource().
|
private |
Store caching state data for a source.
Definition at line 227 of file MetaLoader.php.
References $source, array, and getTime().
Referenced by loadSource().
sspmod_metarefresh_MetaLoader::setTypes | ( | $types | ) |
Set the types of entities that will be loaded.
string | array | $types | 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. |
Definition at line 63 of file MetaLoader.php.
sspmod_metarefresh_MetaLoader::writeARPfile | ( | $config | ) |
This function writes the metadata to an ARP file.
Definition at line 360 of file MetaLoader.php.
sspmod_metarefresh_MetaLoader::writeMetadataFiles | ( | $outputDir | ) |
This function writes the metadata to to separate files in the output directory.
Definition at line 392 of file MetaLoader.php.
References $filename, $outputDir, $res, $type, SimpleSAML\Logger\debug(), file, getTime(), and SimpleSAML\Logger\info().
sspmod_metarefresh_MetaLoader::writeMetadataSerialize | ( | $outputDir | ) |
Save metadata for loading with the 'serialize' metadata loader.
string | $outputDir | The directory we should save the metadata to. |
Definition at line 442 of file MetaLoader.php.
sspmod_metarefresh_MetaLoader::writeState | ( | ) |
This function writes the state array back to disk.
Definition at line 271 of file MetaLoader.php.
References SimpleSAML\Logger\debug(), getTime(), and SimpleSAML\Utils\System\writeFile().
|
private |
Definition at line 13 of file MetaLoader.php.
|
private |
Definition at line 9 of file MetaLoader.php.
Referenced by __construct().
|
private |
Definition at line 10 of file MetaLoader.php.
|
private |
Definition at line 11 of file MetaLoader.php.
Referenced by __construct().
|
private |
Definition at line 12 of file MetaLoader.php.
Referenced by __construct().
|
private |
Definition at line 14 of file MetaLoader.php.
Referenced by getTypes(), and setTypes().