ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
getMetadataSet ($set) | |
This function attempts to generate an associative array with metadata for all entities in the given set. More... | |
getEntityIdFromHostPath ($hostPath, $set, $type='entityid') | |
This function resolves an host/path combination to an entity id. More... | |
getPreferredEntityIdFromCIDRhint ($set, $ip, $type='entityid') | |
This function will go through all the metadata, and check the hint.cidr parameter, which defines a network space (ip range) for each remote entry. More... | |
getMetaData ($index, $set) | |
This function retrieves metadata for the given entity id in the given set of metadata. More... | |
Static Public Member Functions | |
static | parseSources ($sourcesConfig) |
Parse array with metadata sources. More... | |
static | getSource ($sourceConfig) |
This function creates a metadata source based on the given configuration. More... | |
Private Member Functions | |
lookupIndexFromEntityId ($entityId, $set) | |
Definition at line 15 of file MetaDataStorageSource.php.
SimpleSAML_Metadata_MetaDataStorageSource::getEntityIdFromHostPath | ( | $hostPath, | |
$set, | |||
$type = 'entityid' |
|||
) |
This function resolves an host/path combination to an entity id.
This class implements this function using the getMetadataSet-function. A subclass should override this function if it doesn't implement the getMetadataSet function, or if the implementation of getMetadataSet is slow.
string | $hostPath | The host/path combination we are looking up. |
string | $set | Which set of metadata we are looking it up in. |
string | $type | Do you want to return the metaindex or the entityID. [entityid|metaindex] |
Definition at line 132 of file MetaDataStorageSource.php.
References $index, $type, and getMetadataSet().
SimpleSAML_Metadata_MetaDataStorageSource::getMetaData | ( | $index, | |
$set | |||
) |
This function retrieves metadata for the given entity id in the given set of metadata.
It will return NULL if it is unable to locate the metadata.
This class implements this function using the getMetadataSet-function. A subclass should override this function if it doesn't implement the getMetadataSet function, or if the implementation of getMetadataSet is slow.
string | $index | The entityId or metaindex we are looking up. |
string | $set | The set we are looking for metadata in. |
Definition at line 246 of file MetaDataStorageSource.php.
References $index, getMetadataSet(), and lookupIndexFromEntityId().
SimpleSAML_Metadata_MetaDataStorageSource::getMetadataSet | ( | $set | ) |
This function attempts to generate an associative array with metadata for all entities in the given set.
The key of the array is the entity id.
A subclass should override this function if it is able to easily generate this list.
string | $set | The set we want to list metadata for. |
Definition at line 112 of file MetaDataStorageSource.php.
References array.
Referenced by getEntityIdFromHostPath(), getMetaData(), getPreferredEntityIdFromCIDRhint(), and lookupIndexFromEntityId().
SimpleSAML_Metadata_MetaDataStorageSource::getPreferredEntityIdFromCIDRhint | ( | $set, | |
$ip, | |||
$type = 'entityid' |
|||
) |
This function will go through all the metadata, and check the hint.cidr parameter, which defines a network space (ip range) for each remote entry.
This function returns the entityID for any of the entities that have an IP range which the IP falls within.
string | $set | Which set of metadata we are looking it up in. |
string | $ip | IP address |
string | $type | Do you want to return the metaindex or the entityID. [entityid|metaindex] |
Definition at line 174 of file MetaDataStorageSource.php.
References $index, $type, and getMetadataSet().
|
static |
This function creates a metadata source based on the given configuration.
The type of source is based on the 'type' parameter in the configuration. The default type is 'flatfile'.
array | $sourceConfig | Associative array with the configuration for this metadata source. |
Exception | If the metadata source type is invalid. |
Definition at line 60 of file MetaDataStorageSource.php.
References $type, and SimpleSAML\Module\resolveClass().
Referenced by metarefresh_hook_cron().
|
private |
Definition at line 207 of file MetaDataStorageSource.php.
References $entityId, $index, getMetadataSet(), and SimpleSAML\Utils\HTTP\getSelfHost().
Referenced by getMetaData().
|
static |
Parse array with metadata sources.
This function accepts an array with metadata sources, and returns an array with each metadata source as an object.
array | $sourcesConfig | Array with metadata source configuration. |
Exception | If something is wrong in the configuration. |
Definition at line 31 of file MetaDataStorageSource.php.
References array.
Referenced by SimpleSAML_Metadata_MetaDataStorageHandler\__construct().