1 | <?php |
||
16 | class StatusFlag { |
||
17 | const UNREAD = 0x02; |
||
18 | const STARRED = 0x04; |
||
19 | const DELETED = 0x08; |
||
20 | const UPDATED = 0x16; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * Get status for query |
||
25 | * |
||
26 | * @param int $type the type that should be turned into the status |
||
27 | * @param bool $showAll true if it should return all read items |
||
28 | * @return int the status for the database |
||
29 | */ |
||
30 | public function typeToStatus($type, $showAll){ |
||
45 | |||
46 | |||
47 | } |