[-] WS : Multiple fix on Web Services
This commit is contained in:
@@ -188,6 +188,7 @@ class WebserviceOutputBuilderCore
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
public function getStatusInt()
|
||||
{
|
||||
return $this->statusInt;
|
||||
@@ -283,7 +284,7 @@ class WebserviceOutputBuilderCore
|
||||
if (is_null($this->wsResource))
|
||||
throw new WebserviceException ('You must set web service resource for get the resources list.', array(82, 500));
|
||||
$output = '';
|
||||
$more_attr = array('shop_name' => Configuration::get('PS_SHOP_NAME'));
|
||||
$more_attr = array('shop_name' => htmlentities(Configuration::get('PS_SHOP_NAME')));
|
||||
$output .= $this->objectRender->renderNodeHeader('api', array(), $more_attr);
|
||||
foreach ($this->wsResource as $resourceName => $resource)
|
||||
{
|
||||
@@ -675,7 +676,7 @@ class WebserviceOutputBuilderCore
|
||||
|
||||
if (!is_null($this->schemaToDisplay))
|
||||
$field['synopsis_details'] = $this->getSynopsisDetails($field);
|
||||
|
||||
$field['is_association'] = true;
|
||||
$output .= $this->setIndent($depth-1).$this->objectRender->renderField($field);
|
||||
}
|
||||
}
|
||||
@@ -755,10 +756,12 @@ class WebserviceOutputBuilderCore
|
||||
|
||||
$this->virtualFields[$entity_name][] = array('parameters' => $parameters, 'object' => $object, 'method' => $method, 'type' => gettype($object));
|
||||
}
|
||||
|
||||
public function getVirtualFields()
|
||||
{
|
||||
return $this->virtualFields;
|
||||
}
|
||||
|
||||
public function addVirtualFields($entity_name, $entity_object)
|
||||
{
|
||||
$arr_return = array();
|
||||
|
||||
Reference in New Issue
Block a user