Class yii\httpclient\XmlParser
Inheritance | yii\httpclient\XmlParser » yii\base\BaseObject |
---|---|
Implements | yii\httpclient\ParserInterface |
Available since version | 2.0 |
XmlParser parses HTTP message content as XML.
Public Methods
Method | Description | Defined By |
---|---|---|
parse() | Parses given HTTP response instance. | yii\httpclient\XmlParser |
Protected Methods
Method | Description | Defined By |
---|---|---|
convertXmlToArray() | Converts XML document to array. | yii\httpclient\XmlParser |
Method Details
Converts XML document to array.
protected array convertXmlToArray ( $xml ) | ||
$xml | string|SimpleXMLElement | Xml to process. |
return | array | XML array representation. |
---|
Parses given HTTP response instance.
public mixed parse ( yii\httpclient\Response $response ) | ||
$response | yii\httpclient\Response | HTTP response instance. |
return | mixed | Parsed content data. |
---|