CoreApi: listObjects should return a list
This commit is contained in:
parent
f8d2843d2c
commit
66b1daa1ba
|
@ -60,12 +60,14 @@ class CoreApi
|
||||||
{
|
{
|
||||||
// TODO: more abstraction needed
|
// TODO: more abstraction needed
|
||||||
// TODO: autofetch and cache pluraltypes
|
// TODO: autofetch and cache pluraltypes
|
||||||
return $this->client->get(
|
$result = $this->client->get(
|
||||||
'objects/' . $pluralType,
|
'objects/' . $pluralType,
|
||||||
array(
|
array(
|
||||||
'attrs' => array($type . '.__name', $type . '.name'),
|
'attrs' => array('__name')
|
||||||
)
|
)
|
||||||
)->getResult('name');
|
)->getResult('name');
|
||||||
|
|
||||||
|
return array_keys($result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getModules()
|
public function getModules()
|
||||||
|
|
Loading…
Reference in New Issue