@@ 141-149 (lines=9) @@ | ||
138 | { |
|
139 | if ($request instanceof SimpleXMLElement) { |
|
140 | $request = $request->asXml(); |
|
141 | } else { |
|
142 | $xml = $this->getPacket(); |
|
143 | ||
144 | if (is_array($request)) { |
|
145 | $request = $this->_arrayToXml($request, $xml)->asXML(); |
|
146 | } else if (preg_match('/^[a-z]/', $request)) { |
|
147 | $request = $this->_expandRequestShortSyntax($request, $xml); |
|
148 | } |
|
149 | } |
|
150 | ||
151 | if ('sdk' == $this->_protocol) { |
|
152 | $version = ('' == $this->_version) ? null : $this->_version; |
|
@@ 213-219 (lines=7) @@ | ||
210 | foreach ($requests as $request) { |
|
211 | if ($request instanceof SimpleXMLElement) { |
|
212 | throw new Client\Exception('SimpleXML type of request is not supported for multi requests.'); |
|
213 | } else { |
|
214 | if (is_array($request)) { |
|
215 | $request = $this->_arrayToXml($request, $requestXml)->asXML(); |
|
216 | } else if (preg_match('/^[a-z]/', $request)) { |
|
217 | $this->_expandRequestShortSyntax($request, $requestXml); |
|
218 | } |
|
219 | } |
|
220 | $responses[] = $this->request($request); |
|
221 | } |
|
222 |