Public Member Functions | |
getAlignedTo ($nodeType, $nodeId, $options=array()) | |
INSERT BRIEF DESCRIPTION HERE. | |
getAlignments ($options=array()) | |
INSERT BRIEF DESCRIPTION HERE. | |
getByMetadata ($constraints, $options=array()) | |
Query the search service and return a SDRResourceResponse (for advanced search). | |
getDefault ($which) | |
INSERT BRIEF DESCRIPTION HERE. | |
getLastRequest () | |
INSERT BRIEF DESCRIPTION HERE. | |
getLastResponse () | |
INSERT BRIEF DESCRIPTION HERE. | |
getRelatedTo ($cserdId, $options=array()) | |
INSERT BRIEF DESCRIPTION HERE. | |
getRelationships ($options=array()) | |
INSERT BRIEF DESCRIPTION HERE. | |
getResource ($id, $options=array()) | |
Query the search service and return an SDRResourceResult object. | |
getResourceResponse ($request) | |
Query the search service and return a SDRResourceResponse (for a quick search). | |
getVocabulary ($field, $options=array()) | |
INSERT BRIEF DESCRIPTION HERE. | |
getWithAlignments ($types, $options=array()) | |
INSERT BRIEF DESCRIPTION HERE. | |
query ($request) | |
Query the search service and return raw XML. | |
setDefault ($which, $what) | |
INSERT BRIEF DESCRIPTION HERE. | |
Static Protected Member Functions | |
static | queryURL ($url, $XMLData=null, $key=null) |
Run a CURL command on an XML service URL and return the result. |
This class extends the XML Service Interface to allow querying of a particular XML service -- the SDR Search Service. Use this class to search the SDR Catalog based on a quick search string, an advanced
SDRSearchService::getAlignedTo | ( | $ | nodeType, | |
$ | nodeId, | |||
$ | options = array() | |||
) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$nodeType | [TYPE]: DESCRIPTION | |
$nodeId | [TYPE]: DESCRIPTION | |
$options | [TYPE]: DESCRIPTION |
SDRSearchService::getAlignments | ( | $ | options = array() |
) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$options | [TYPE]: DESCRIPTION |
SDRSearchService::getByMetadata | ( | $ | constraints, | |
$ | options = array() | |||
) |
Query the search service and return a SDRResourceResponse (for advanced search).
Define a query URL using a set of constraints (i.e., advanced search). Run the query with the search service, and then return an SDRResourceResponse object.
$constraints | [array]: An array of constraints to be added to the search request URL | |
$options | [array]: Additional options to append to the search request URL |
SDRSearchService::getDefault | ( | $ | which | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$which | [TYPE]: DESCRIPTION |
SDRSearchService::getLastRequest | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
SDRSearchService::getLastResponse | ( | ) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
SDRSearchService::getRelatedTo | ( | $ | cserdId, | |
$ | options = array() | |||
) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$cserdId | [TYPE]: DESCRIPTION | |
$options | [TYPE]: DESCRIPTION |
SDRSearchService::getRelationships | ( | $ | options = array() |
) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$options | [TYPE]: DESCRIPTION |
SDRSearchService::getResource | ( | $ | id, | |
$ | options = array() | |||
) |
Query the search service and return an SDRResourceResult object.
Build a URL request to the search service by starting with the base path to the service (defined in common) and appending all the request constraints (generated by the request object). Call query() to query the service, then build an SDRResourceResponse based on the result. If there are no resources returned, return null rather than an object.
$id | [int]: The cserdId of a desired resource | |
$options | [array]: An associative array of additional options to attach to the search URL (i.e., metadata => true, relationships => true) (optional) |
SDRSearchService::getResourceResponse | ( | $ | request | ) |
Query the search service and return a SDRResourceResponse (for a quick search).
Build a search service request, run it using query(), and return an SDRResourceResponse object representing the result.
$request | [SDRServiceRequest]: The object representing the search service request |
SDRSearchService::getVocabulary | ( | $ | field, | |
$ | options = array() | |||
) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$field | [TYPE]: DESCRIPTION | |
$options | [TYPE]: DESCRIPTION |
SDRSearchService::getWithAlignments | ( | $ | types, | |
$ | options = array() | |||
) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$types | [TYPE]: DESCRIPTION | |
$options | [TYPE]: DESCRIPTION |
SDRSearchService::query | ( | $ | request | ) |
Query the search service and return raw XML.
Build a URL request to the search service by starting with the base path to the service (defined in common) and appending all the request constraints (generated by the request object). CURL this URL and return the resulting XML.
$request | [SDRServiceRequest]: The object representing the search service request |
static SDRSearchService::queryURL | ( | $ | url, | |
$ | XMLData = null , |
|||
$ | key = null | |||
) | [static, protected] |
Run a CURL command on an XML service URL and return the result.
This is called by either query() (when URLs are passed directly), or querySearchRequest() (when a request object is passed). It simply runs a CURL command and returns the result. If either the $key or $XMLData params are passed, it includes a POST section on the request and sends those variables through POST.
$url | [string]: The URL of the XML service | |
$XMLData | [string]: An XML data section to POST with the request | |
$key | [string]: An authentication key to POST with the request |
Reimplemented from XSI.
SDRSearchService::setDefault | ( | $ | which, | |
$ | what | |||
) |
INSERT BRIEF DESCRIPTION HERE.
INSERT FULL DESCRIPTION HERE
$which | [TYPE]: DESCRIPTION | |
$what | [TYPE]: DESCRIPTION |