ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($config) | |
This constructor initializes the PDO metadata storage handler with the specified configuration. More... | |
getMetadataSet ($set) | |
Retrieve a list of all available metadata for a given set. More... | |
addEntry ($index, $set, $entityData) | |
Add metadata to the configured database. More... | |
initDatabase () | |
Initialize the configured database. More... | |
Public Member Functions inherited from SimpleSAML_Metadata_MetaDataStorageSource | |
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... | |
Data Fields | |
$supportedSets | |
All the metadata sets supported by this MetaDataStorageHandler. More... | |
Private Member Functions | |
load ($set) | |
This function loads the given set of metadata from a file to a configured database. More... | |
generateDynamicHostedEntityID ($set) | |
getTableName ($table) | |
Replace the -'s to an _ in table names for Metadata sets since SQL does not allow a - in a table name. More... | |
Private Attributes | |
$db | |
The PDO object. More... | |
$tablePrefix | |
Prefix to apply to the metadata table. More... | |
$cachedMetadata = array() | |
This is an associative array which stores the different metadata sets we have loaded. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SimpleSAML_Metadata_MetaDataStorageSource | |
static | parseSources ($sourcesConfig) |
Parse array with metadata sources. More... | |
static | getSource ($sourceConfig) |
This function creates a metadata source based on the given configuration. More... | |
Definition at line 14 of file MetaDataStorageHandlerPdo.php.
SimpleSAML_Metadata_MetaDataStorageHandlerPdo::__construct | ( | $config | ) |
This constructor initializes the PDO metadata storage handler with the specified configuration.
The configuration is an associative array with the following possible elements (set in config.php):
array | $config | An associative array with the configuration for this handler. |
Definition at line 61 of file MetaDataStorageHandlerPdo.php.
References SimpleSAML\Database\getInstance().
SimpleSAML_Metadata_MetaDataStorageHandlerPdo::addEntry | ( | $index, | |
$set, | |||
$entityData | |||
) |
Add metadata to the configured database.
string | $index | Entity ID |
string | $set | The set to add the metadata to |
array | $entityData | Metadata |
Definition at line 180 of file MetaDataStorageHandlerPdo.php.
References $index, $metadata, $params, $rows, array, and getTableName().
|
private |
Definition at line 146 of file MetaDataStorageHandlerPdo.php.
References $baseurl, and SimpleSAML\Utils\HTTP\getBaseURL().
Referenced by getMetadataSet().
SimpleSAML_Metadata_MetaDataStorageHandlerPdo::getMetadataSet | ( | $set | ) |
Retrieve a list of all available metadata for a given set.
string | $set | The set we are looking for metadata in. |
Definition at line 120 of file MetaDataStorageHandlerPdo.php.
References $entityId, array, generateDynamicHostedEntityID(), and load().
|
private |
Replace the -'s to an _ in table names for Metadata sets since SQL does not allow a - in a table name.
string | $table | Table |
Definition at line 230 of file MetaDataStorageHandlerPdo.php.
Referenced by addEntry(), initDatabase(), and load().
SimpleSAML_Metadata_MetaDataStorageHandlerPdo::initDatabase | ( | ) |
Initialize the configured database.
Definition at line 243 of file MetaDataStorageHandlerPdo.php.
References $rows, and getTableName().
|
private |
This function loads the given set of metadata from a file to a configured database.
This function returns NULL if it is unable to locate the given set in the metadata directory.
string | $set | The set of metadata we are loading. |
Exception | If a database error occurs. |
SimpleSAML_Error_Exception | If the metadata can be retrieved from the database, but cannot be decoded. |
Definition at line 81 of file MetaDataStorageHandlerPdo.php.
References $d, $data, $metadata, array, and getTableName().
Referenced by getMetadataSet().
|
private |
This is an associative array which stores the different metadata sets we have loaded.
Definition at line 30 of file MetaDataStorageHandlerPdo.php.
|
private |
The PDO object.
Definition at line 20 of file MetaDataStorageHandlerPdo.php.
SimpleSAML_Metadata_MetaDataStorageHandlerPdo::$supportedSets |
All the metadata sets supported by this MetaDataStorageHandler.
Definition at line 35 of file MetaDataStorageHandlerPdo.php.
|
private |
Prefix to apply to the metadata table.
Definition at line 25 of file MetaDataStorageHandlerPdo.php.