Simple
in package
implements
SetInterface
Provides very simple and straightforward implementation of sets.
&llt;setSpec> are simply taken from a given RDF property of the resource's metadata.
It allows hierarchical sets but there is no support for set names and
set metadata (it would require to make some assumptions on how sets are
described in the repository - see the acdhOeaw\arche\oaipmh\set\Complex
class).
Tags
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
protected
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
QueryPartgetSetFilter()
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
QueryPartlistSets()
Handles the `ListSets` OAI-PMH request.
public
listSets(PDO $pdo) : array<string|int, SetInfo>
Parameters
- $pdo : PDO