|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Inheritance diagram for SimpleSAML_Metadata_MetaDataStorageHandlerPdo:
Collaboration diagram for SimpleSAML_Metadata_MetaDataStorageHandlerPdo: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... | |
| getMetaData ($entityId, $set) | |
| Retrieve a metadata entry. 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 DiscoHints->IPHint 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 13 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 60 of file MetaDataStorageHandlerPdo.php.
References $config, and SimpleSAML\Database\getInstance().
Here is the call graph for this function:| 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 222 of file MetaDataStorageHandlerPdo.php.
References $index, $metadata, PHPMailer\PHPMailer\$params, $rows, and getTableName().
Here is the call graph for this function:
|
private |
Definition at line 188 of file MetaDataStorageHandlerPdo.php.
References SimpleSAML\Utils\HTTP\getBaseURL().
Referenced by getMetadataSet().
Here is the call graph for this function:
Here is the caller graph for this function:| SimpleSAML_Metadata_MetaDataStorageHandlerPdo::getMetaData | ( | $entityId, | |
| $set | |||
| ) |
Retrieve a metadata entry.
| string | $entityId | The entityId we are looking up. |
| string | $set | The set we are looking for metadata in. |
Reimplemented from SimpleSAML_Metadata_MetaDataStorageSource.
Definition at line 153 of file MetaDataStorageHandlerPdo.php.
References $d, $data, $entityId, $stmt, getTableName(), and SimpleSAML\Logger\warning().
Here is the call graph for this function:| 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. |
Reimplemented from SimpleSAML_Metadata_MetaDataStorageSource.
Definition at line 119 of file MetaDataStorageHandlerPdo.php.
References $entityId, generateDynamicHostedEntityID(), and load().
Here is the call graph for this function:
|
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 272 of file MetaDataStorageHandlerPdo.php.
References $table.
Referenced by addEntry(), getMetaData(), initDatabase(), and load().
Here is the caller graph for this function:| SimpleSAML_Metadata_MetaDataStorageHandlerPdo::initDatabase | ( | ) |
Initialize the configured database.
Definition at line 285 of file MetaDataStorageHandlerPdo.php.
References $rows, $stmt, and getTableName().
Here is the call graph for this function:
|
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 80 of file MetaDataStorageHandlerPdo.php.
References $d, $data, $metadata, $stmt, and getTableName().
Referenced by getMetadataSet().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
This is an associative array which stores the different metadata sets we have loaded.
Definition at line 29 of file MetaDataStorageHandlerPdo.php.
|
private |
The PDO object.
Definition at line 19 of file MetaDataStorageHandlerPdo.php.
| SimpleSAML_Metadata_MetaDataStorageHandlerPdo::$supportedSets |
All the metadata sets supported by this MetaDataStorageHandler.
Definition at line 34 of file MetaDataStorageHandlerPdo.php.
|
private |
Prefix to apply to the metadata table.
Definition at line 24 of file MetaDataStorageHandlerPdo.php.