Documentation

Complex
in package
implements SetInterface

Provides full sets support.

Tags
author

zozlak

Table of Contents

Interfaces

SetInterface
Interface for OAI-PMH sets implementations.

Properties

$config  : object
Configuration object

Methods

__construct()  : mixed
getSetData()  : QueryPart
Returns an SQL query returning a table with two columns:
getSetFilter()  : QueryPart
Returns an SQL query returning a table with an `id` column providing repository resource ids belonging to a given set.
listSets()  : array<string|int, SetInfo>
Handles the `ListSets` OAI-PMH request.

Properties

$config

Configuration object

private object $config

Methods

__construct()

public __construct(object $config) : mixed
Parameters
$config : object

getSetData()

Returns an SQL query returning a table with two columns:

public getSetData() : QueryPart
  • id providing a repository resource id
  • set providing a name of the set a resource belongs to

If a resource belongs to many sets, many rows should be returned.

Return values
QueryPart

getSetFilter()

Returns an SQL query returning a table with an `id` column providing repository resource ids belonging to a given set.

public getSetFilter(string $set) : QueryPart
Parameters
$set : string

setSpec value to be matched

Return values
QueryPart

listSets()

Handles the `ListSets` OAI-PMH request.

public listSets(PDO $pdo) : array<string|int, SetInfo>
Parameters
$pdo : PDO
Return values
array<string|int, SetInfo>

        
On this page

Search results