diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/itemmapper.php | 29 | ||||
-rw-r--r-- | db/statusflag.php | 22 |
2 files changed, 51 insertions, 0 deletions
diff --git a/db/itemmapper.php b/db/itemmapper.php index 7d0279264..77621be2a 100644 --- a/db/itemmapper.php +++ b/db/itemmapper.php @@ -104,6 +104,35 @@ class ItemMapper extends Mapper implements IMapper { } + public function findAllNewFeed($id, $updatedSince, $status, $userId){ + // TODO + } + + + public function findAllNewFolder($id, $updatedSince, $status, $userId){ + // TODO + } + + + public function findAllNew($updatedSince, $status, $userId){ + // TODO + } + + + public function findAllFeed($id, $limit, $offset, $status, $userId){ + // TODO + } + + + public function findAllFolder($id, $limit, $offset, $status, $userId){ + // TODO + } + + + public function findAll($limit, $offset, $status, $userId){ + // TODO + } + } /** * Queries to find all items from a folder that belongs to a user diff --git a/db/statusflag.php b/db/statusflag.php index eccf1e199..96d64915b 100644 --- a/db/statusflag.php +++ b/db/statusflag.php @@ -30,4 +30,26 @@ class StatusFlag { const STARRED = 0x04; const DELETED = 0x08; const UPDATED = 0x16; + + + /** + * Get status for query + */ + public function typeToStatus($type, $showAll){ + if($type === FeedType::STARRED){ + $status = self::STARRED; + } else { + $status = 0; + } + + if($showAll){ + $status |= self::UNREAD; + } else { + $status &= ~self::UNREAD; + } + + return $status; + } + + }
\ No newline at end of file |