Constants

FORMAT_XML

FORMAT_XML

FORMAT_JSON

FORMAT_JSON

Properties

$eventContentTypes

$eventContentTypes

$call

$call

$namespaces

$namespaces

$subscriptionId

$subscriptionId

$xpath

$xpath

$hydrator

$hydrator

$domHydrator

$domHydrator

$queryMap

$queryMap

Methods

fromXml()

fromXml( $document)

Parameters

$document

getResource()

getResource()

setResource()

setResource( $resource)

Parameters

$resource

getCall()

getCall()

is_event_request()

is_event_request(array $requestData, array $contentTypes) : string

Determines if the request is an event notification, and returns the corresponding format identifier.

Parameters

array $requestData

= null

array $contentTypes

= null

Returns

string

event()

event( $postData,  $format)

Parameters

$postData
$format

fromJson()

fromJson( $data)

Parameters

$data

createXPath()

createXPath(\DOMDocument $document)

Parameters

\DOMDocument $document

loadXml()

loadXml(\DOMDocument $document, \DOMNode $contextNode,  $cleanup)

Parameters

\DOMDocument $document
\DOMNode $contextNode
$cleanup

parseResourceNode()

parseResourceNode(\DOMNode $resourceNode)

Parameters

\DOMNode $resourceNode

getSubscriptionId()

getSubscriptionId()

setSubscriptionId()

setSubscriptionId( $subscriptionId)

Parameters

$subscriptionId

getXPath()

getXPath()

setXPath()

setXPath( $xpath)

Parameters

$xpath

getHydrator()

getHydrator()

setHydrator()

setHydrator( $hydrator)

Parameters

$hydrator

getDomHydrator()

getDomHydrator()

setDomHydrator()

setDomHydrator( $domHydrator)

Parameters

$domHydrator

getQueryMap()

getQueryMap()

setQueryMap()

setQueryMap( $queryMap)

Parameters

$queryMap

getXmlDocument()

getXmlDocument( $document)

Parameters

$document

cleanup()

cleanup()

loadQueryMap()

loadQueryMap()