PHP 클래스 SimpleSAML_Metadata_MetaDataStorageHandlerPdo, simplesamlphp

This class has been based off a previous version written by [email protected] and patched to work with the latest version of SimpleSAMLphp
저자: Tyler Antonio, University of Alberta ([email protected])
상속: extends SimpleSAML_Metadata_MetaDataStorageSource
파일 보기 프로젝트 열기: simplesamlphp/simplesamlphp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$supportedSets All the metadata sets supported by this MetaDataStorageHandler

공개 메소드들

메소드 설명
__construct ( array $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): - 'usePersistentConnection': TRUE/FALSE if database connection should be persistent.
addEntry ( string $index, string $set, array $entityData ) : boolean Add metadata to the configured database
getMetadataSet ( string $set ) : array Retrieve a list of all available metadata for a given set.
initDatabase ( ) : integer | false Initialize the configured database

비공개 메소드들

메소드 설명
generateDynamicHostedEntityID ( $set )
getTableName ( string $table ) : string Replace the -'s to an _ in table names for Metadata sets since SQL does not allow a - in a table name.
load ( string $set ) : array This function loads the given set of metadata from a file to a configured database.

메소드 상세

__construct() 공개 메소드

- 'dsn': The database connection string. - 'username': Database user name - 'password': Password for the database user.
public __construct ( array $config )
$config array An associative array with the configuration for this handler.

addEntry() 공개 메소드

Add metadata to the configured database
public addEntry ( string $index, string $set, array $entityData ) : boolean
$index string Entity ID
$set string The set to add the metadata to
$entityData array Metadata
리턴 boolean True/False if entry was successfully added

getMetadataSet() 공개 메소드

Retrieve a list of all available metadata for a given set.
public getMetadataSet ( string $set ) : array
$set string The set we are looking for metadata in.
리턴 array $metadata An associative array with all the metadata for the given set.

initDatabase() 공개 메소드

Initialize the configured database
public initDatabase ( ) : integer | false
리턴 integer | false The number of SQL statements successfully executed, false if some error occurred.

프로퍼티 상세

$supportedSets 공개적으로 프로퍼티

All the metadata sets supported by this MetaDataStorageHandler
public $supportedSets