function pmpapi_query in Public Media Platform API Integration 7
Fetches multiple docs from the PMP, narrowed by query-type parameters.
Parameters
$params: PMP query parameters.
Return value
object An PMPAPIDrupal object, or NULL if errors.
3 calls to pmpapi_query()
- PMPAPIWebTestCase::testPmpAPIDoQuery in tests/
pmpapi.test - Makes a basic query to the PMP.
- pmpapi_get_properties in ./
pmpapi.module - Create a list of all PMP properties (essentially 'programs')
- pmpapi_pull_filter_form in pmpapi_pull/
pmpapi_pull.pages.inc - Form constructor for the PMPAPI pull search form.
File
- ./
pmpapi.module, line 76 - Creates basic calls to the PMP API.
Code
function pmpapi_query($params, $cache = TRUE) {
$pmp = new PMPAPIDrupal($cache);
if (empty($pmp->errors)) {
$pmp
->pull($params);
}
return $pmp;
}