forked from ding2/ting-client
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathting_client.api.php
More file actions
33 lines (31 loc) · 977 Bytes
/
ting_client.api.php
File metadata and controls
33 lines (31 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* @file
* Hooks provided by the ting-client module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* add a webservice request to ting-client
* @return array of request settings
*
* REQUIRED SETTINGS
* - class: name of the class extending TingClientRequest (@see lib/request/TingClientRequest.php)
* - url: name of variable holding the url of the webservice
* OPTIONAL SETTINGS
* - custom_parse: name of the method to parse the response
* - xsdNamespace: array of namespaces to add to the request
* - xsd_url: name of variable holding the url of the webservice's XSD
**/
function hook_ting_client_webservice() {
$ret = array();
// REQUIRED
$ret['openHoldingStatus']['class'] = 'openHoldingStatus';
$ret['openHoldingStatus']['url'] = 'openHoldingStatus_url';
// OPTIONAL
$ret['openHoldingStatus']['xsdNamespace'] = array(0 => 'http://oss.dbc.dk/ns/openagency');
$ret['openHoldingStatus']['custom_parse'] = 'parse_me';
return $ret;
}