diff options
Diffstat (limited to 'db/folder.php')
-rw-r--r-- | db/folder.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/db/folder.php b/db/folder.php index 23d33737f..5dfa738f3 100644 --- a/db/folder.php +++ b/db/folder.php @@ -51,6 +51,12 @@ class Folder extends Collection { public function setOpened($opened) { $this->opened = $opened; } + + public function setParentId() { + if ($this->parent !== null) { + + } + } public function getParentId() { if ($this->parent === null) { @@ -73,7 +79,12 @@ class Folder extends Collection { public function jsonSerialize() { //TODO: this is just for test - return $this->name; + $encoding = array( + 'id' => $this->getId(), + 'parentId' => $this->getParentId(), + 'title' => $this->getName(), + ); + return $encoding; } }
\ No newline at end of file |