Omeka_Record_Api_AbstractRecordAdapter¶
Package: Record\Api
- class Omeka_Record_Api_AbstractRecordAdapter¶
implements Omeka_Record_Api_RecordAdapterInterface
- property Omeka_Record_Api_AbstractRecordAdapter::$_elementsCache¶
protected array
- property Omeka_Record_Api_AbstractRecordAdapter::$_elementSetsCache¶
protected array
- Omeka_Record_Api_AbstractRecordAdapter::setPostData(Omeka_Record_AbstractRecord $record, $data)¶
Set data to a record during a POST request.
Parameters:
- $record (Omeka_Record_AbstractRecord) –
- $data (mixed) –
- Omeka_Record_Api_AbstractRecordAdapter::setPutData(Omeka_Record_AbstractRecord $record, $data)¶
Set data to a record during a PUT request.
Parameters:
- $record (Omeka_Record_AbstractRecord) –
- $data (mixed) –
- Omeka_Record_Api_AbstractRecordAdapter::getElementTextRepresentations(Omeka_Record_AbstractRecord $record)¶
Get representations of element texts belonging to a record.
Parameters:
- $record (Omeka_Record_AbstractRecord) –
Returns: array
- Omeka_Record_Api_AbstractRecordAdapter::setElementTextData(Omeka_Record_AbstractRecord $record, $data)¶
Set element text data to a record.
The record must initialize the ElementText mixin.
Parameters:
- $record (Omeka_Record_AbstractRecord) –
- $data (mixed) –
- Omeka_Record_Api_AbstractRecordAdapter::getTagRepresentations(Omeka_Record_AbstractRecord $record)¶
Get representations of tags belonging to a record.
The record must initialize the Tag mixin.
Parameters:
- $record (Omeka_Record_AbstractRecord) –
Returns: array
- Omeka_Record_Api_AbstractRecordAdapter::setTagData(Omeka_Record_AbstractRecord $record, $data)¶
Set tag data to a record.
The record must initialize the Tag mixin.
Parameters:
- $record (Omeka_Record_AbstractRecord) –
- $data (mixed) –
- Omeka_Record_Api_AbstractRecordAdapter::getResourceUrl($uri)¶
Get the absolute URL to the passed resource.
Parameters:
- $uri (string) – The full resource URI
Returns: string
- Omeka_Record_Api_AbstractRecordAdapter::getDate($date)¶
Format a date string as an ISO 8601 date, UTC timezone.
Parameters:
- $date (string) –
Returns: string
- Omeka_Record_Api_AbstractRecordAdapter::_getUnfilteredElementTextRepresentations(Omeka_Record_AbstractRecord $record)¶
Get unfiltered representations of element texts belonging to a record.
Note the HTML flag in the representation. This indicates to the consumer that the representation is unfiltered.
Parameters:
- $record (Omeka_Record_AbstractRecord) –
Returns: array
- Omeka_Record_Api_AbstractRecordAdapter::_getFilteredElementTextRepresentations(Omeka_Record_AbstractRecord $record)¶
Get filtered representations of element texts belonging to a record.
Note the lack of the HTML flag in the representation. This indicates to the consumer that the representation is filtered through the display_elements and array(‘Display’,...) element texts filters.
Parameters:
- $record (Omeka_Record_AbstractRecord) –
Returns: array
- Omeka_Record_Api_AbstractRecordAdapter::getRepresentation(Omeka_Record_AbstractRecord $record)¶
Get the REST representation of a record.
Parameters:
- $record (Omeka_Record_AbstractRecord) –