Свойство | Тип | Описание | |
---|---|---|---|
$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. |
public __construct ( array $config ) | ||
$config | array | An associative array with the configuration for this handler. |
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. |
public initDatabase ( ) : integer | false | ||
Результат | integer | false | The number of SQL statements successfully executed, false if some error occurred. |