\Guzzle\Service\Command\LocationVisitor\ResponseXmlVisitor

Location visitor used to marshal XML response data into a formatted array

Summary

Methods
Properties
Constants
before()
after()
visit()
No public properties found
No constants found
recursiveProcess()
processArray()
processObject()
processXmlAttribute()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

before()

before(\Guzzle\Service\Command\CommandInterface  $command, array  $result) 

Called before visiting all parameters. This can be used for seeding the result of a command with default data (e.g. populating with JSON data in the response then adding to the parsed data).

Parameters

\Guzzle\Service\Command\CommandInterface $command

Command being visited

array $result

Result value to update if needed (e.g. parsing XML or JSON)

visit()

visit(\Guzzle\Service\Command\CommandInterface  $command, \Guzzle\Http\Message\Response  $response, \Guzzle\Service\Description\Parameter  $param, mixed  $value, mixed  $context = null) 

Called once for each parameter being visited that matches the location type

Parameters

\Guzzle\Service\Command\CommandInterface $command

Command being visited

\Guzzle\Http\Message\Response $response

Response being visited

\Guzzle\Service\Description\Parameter $param

Parameter being visited

mixed $value

Result associative array value being updated by reference

mixed $context

Parsing context

recursiveProcess()

recursiveProcess(\Guzzle\Service\Description\Parameter  $param, mixed  $value) 

Recursively process a parameter while applying filters

Parameters

\Guzzle\Service\Description\Parameter $param

API parameter being processed

mixed $value

Value to validate and process. The value may change during this process.

processArray()

processArray(\Guzzle\Service\Description\Parameter  $param, mixed  $value) 

Process an array

Parameters

\Guzzle\Service\Description\Parameter $param

API parameter being parsed

mixed $value

Value to process

processObject()

processObject(\Guzzle\Service\Description\Parameter  $param, mixed  $value) 

Process an object

Parameters

\Guzzle\Service\Description\Parameter $param

API parameter being parsed

mixed $value

Value to process

processXmlAttribute()

processXmlAttribute(\Guzzle\Service\Description\Parameter  $property, array  $value) 

Process an XML attribute property

Parameters

\Guzzle\Service\Description\Parameter $property

Property to process

array $value

Value to process and update