feat: parse collection
This commit is contained in:
parent
450c3e6f88
commit
9c01fb1ff6
1 changed files with 11 additions and 0 deletions
|
@ -21,6 +21,10 @@ class V06 extends Filter {
|
|||
|
||||
switch($model) {
|
||||
|
||||
case Response::MODEL_COLLECTION:
|
||||
$parsedResponse = $this->parseCollection($content);
|
||||
break;
|
||||
|
||||
case Response::MODEL_FILE :
|
||||
$parsedResponse = $this->parseFile($content);
|
||||
break;
|
||||
|
@ -100,6 +104,13 @@ class V06 extends Filter {
|
|||
return $parsedResponse;
|
||||
}
|
||||
|
||||
private function parseCollection(array $content)
|
||||
{
|
||||
$content['$collection'] = Database::SYSTEM_COLLECTION_COLLECTIONS;
|
||||
$content['structure'] = true;
|
||||
return $content;
|
||||
}
|
||||
|
||||
private function parseFile(array $content)
|
||||
{
|
||||
$content['$collection'] = Database::SYSTEM_COLLECTION_FILES;
|
||||
|
|
Loading…
Reference in a new issue