Adicion de campos para filtrar y correccion en el los campos de respuesta

This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-12-02 14:54:34 -04:00
parent e3a6c94576
commit ebbeaad7a3

View File

@@ -24,6 +24,7 @@ class Activity extends Api
if ($filter == '' || $filter == 'definition') {
// DEFINITION
$definition = array();
$response['definition'] = $definition;
}
if ($filter == '' || $filter == 'properties') {
@@ -35,13 +36,9 @@ class Activity extends Api
unset($properties[$key]);
}
}
$response['properties'] = $properties;
}
$response = array(
'definition' => $definition,
'properties' => $properties
);
return $response;
} catch (\Exception $e) {
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());