Moved SoapClient::getTypemap() function in TypeConverterCollection
This commit is contained in:
parent
c1c5d31350
commit
9cec9c65c4
|
@ -173,25 +173,10 @@ class SoapClient
|
||||||
*/
|
*/
|
||||||
protected function getTypemap()
|
protected function getTypemap()
|
||||||
{
|
{
|
||||||
$typemap = array();
|
|
||||||
|
|
||||||
if (!$this->converters) {
|
if (!$this->converters) {
|
||||||
return $typemap;
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($this->converters->all() as $typeConverter) {
|
return $this->converters->getTypemap();
|
||||||
$typemap[] = array(
|
|
||||||
'type_name' => $typeConverter->getTypeName(),
|
|
||||||
'type_ns' => $typeConverter->getTypeNamespace(),
|
|
||||||
'from_xml' => function($input) use ($typeConverter) {
|
|
||||||
return $typeConverter->convertXmlToPhp($input);
|
|
||||||
},
|
|
||||||
'to_xml' => function($input) use ($typeConverter) {
|
|
||||||
return $typeConverter->convertPhpToXml($input);
|
|
||||||
},
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $typemap;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue