CoreApi: listObjects should return a list

This commit is contained in:
Thomas Gelf 2015-11-26 18:52:28 +01:00
parent f8d2843d2c
commit 66b1daa1ba
1 changed files with 4 additions and 2 deletions

View File

@ -60,12 +60,14 @@ class CoreApi
{
// TODO: more abstraction needed
// TODO: autofetch and cache pluraltypes
return $this->client->get(
$result = $this->client->get(
'objects/' . $pluralType,
array(
'attrs' => array($type . '.__name', $type . '.name'),
'attrs' => array('__name')
)
)->getResult('name');
return array_keys($result);
}
public function getModules()