@@ 144-152 (lines=9) @@ | ||
141 | { |
|
142 | if ($request instanceof SimpleXMLElement) { |
|
143 | $request = $request->asXml(); |
|
144 | } else { |
|
145 | $xml = $this->getPacket(); |
|
146 | ||
147 | if (is_array($request)) { |
|
148 | $request = $this->_arrayToXml($request, $xml)->asXML(); |
|
149 | } else if (preg_match('/^[a-z]/', $request)) { |
|
150 | $request = $this->_expandRequestShortSyntax($request, $xml); |
|
151 | } |
|
152 | } |
|
153 | ||
154 | if ('sdk' == $this->_protocol) { |
|
155 | $version = ('' == $this->_version) ? null : $this->_version; |
|
@@ 224-230 (lines=7) @@ | ||
221 | foreach ($requests as $request) { |
|
222 | if ($request instanceof SimpleXMLElement) { |
|
223 | throw new Client\Exception('SimpleXML type of request is not supported for multi requests.'); |
|
224 | } else { |
|
225 | if (is_array($request)) { |
|
226 | $request = $this->_arrayToXml($request, $requestXml)->asXML(); |
|
227 | } else if (preg_match('/^[a-z]/', $request)) { |
|
228 | $this->_expandRequestShortSyntax($request, $requestXml); |
|
229 | } |
|
230 | } |
|
231 | $responses[] = $this->request($request); |
|
232 | } |
|
233 |