summaryrefslogtreecommitdiffstats
path: root/db/statusflag.php
diff options
context:
space:
mode:
Diffstat (limited to 'db/statusflag.php')
-rw-r--r--db/statusflag.php48
1 files changed, 24 insertions, 24 deletions
diff --git a/db/statusflag.php b/db/statusflag.php
index d24f81275..a3bfd4b18 100644
--- a/db/statusflag.php
+++ b/db/statusflag.php
@@ -14,30 +14,30 @@
namespace OCA\News\Db;
class StatusFlag {
- const UNREAD = 0x02;
- const STARRED = 0x04;
- const DELETED = 0x08;
- const UPDATED = 0x16;
-
-
- /**
- * Get status for query
- */
- public function typeToStatus($type, $showAll){
- if($type === FeedType::STARRED){
- return self::STARRED;
- } else {
- $status = 0;
- }
-
- if($showAll){
- $status &= ~self::UNREAD;
- } else {
- $status |= self::UNREAD;
- }
-
- return $status;
- }
+ const UNREAD = 0x02;
+ const STARRED = 0x04;
+ const DELETED = 0x08;
+ const UPDATED = 0x16;
+
+
+ /**
+ * Get status for query
+ */
+ public function typeToStatus($type, $showAll){
+ if($type === FeedType::STARRED){
+ return self::STARRED;
+ } else {
+ $status = 0;
+ }
+
+ if($showAll){
+ $status &= ~self::UNREAD;
+ } else {
+ $status |= self::UNREAD;
+ }
+
+ return $status;
+ }
} \ No newline at end of file