diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-23 13:24:35 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-23 13:24:35 +0100 |
commit | 3455fe9cb792e584671f465ff6d51732fc1802ff (patch) | |
tree | 817a26f6d03bed8939c0842a63ca5349e28ed099 /db | |
parent | f4f27ab927f16d7ff8900e92ecf7aee75f355f34 (diff) |
finished findall methods in itembl
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 |