HeaderData
in package
Container for data required to generate OAI-PMH resource's header.
Tags
Table of Contents
Properties
- $date : string
- Resource's last modification date
- $deleted : bool
- If the resource is deleted
- $id : string
- Resource's OAI-PMH id
- $repoid : int
- Resource's internal repository identifier
- $sets : array<string|int, string>
- List of sets a resource belongs to
Methods
- __construct() : mixed
- Creates a HeaderData object optionally copying data from a provided object.
Properties
$date
Resource's last modification date
public
string
$date
$deleted
If the resource is deleted
public
bool
$deleted
= false
$id
Resource's OAI-PMH id
public
string
$id
$repoid
Resource's internal repository identifier
public
int
$repoid
$sets
List of sets a resource belongs to
public
array<string|int, string>
$sets
= []
Methods
__construct()
Creates a HeaderData object optionally copying data from a provided object.
public
__construct([object|null $src = null ]) : mixed
Assumes object to provide data in fields:
- id - an OAI-PMH record identifier
- date - an OAI-PMH record datestamp field
- deleted - if an object is deleted (presence of a field means deletion)
- sets - a list of OAI-PMH sets a record belongs to
Parameters
- $src : object|null = null
-
data to copy from