1
0
Fork 0
mirror of synced 2024-06-29 03:30:34 +12:00

feat: parse collection

This commit is contained in:
Christy Jacob 2020-12-29 22:21:51 +05:30
parent 450c3e6f88
commit 9c01fb1ff6

View file

@ -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;