summaryrefslogtreecommitdiffstats
path: root/db/item.php
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-19 19:20:42 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-19 19:20:42 +0100
commit4e077697a1fd0cf15a6eac22cb6e3d6ec4b10ff2 (patch)
treefa6ad4cab5d6c9a3ac2686171d00341d57729a89 /db/item.php
parent3cacc9c90d40f385786482faa51c308afdf54cec (diff)
added itemmapper test
Diffstat (limited to 'db/item.php')
-rw-r--r--db/item.php19
1 files changed, 9 insertions, 10 deletions
diff --git a/db/item.php b/db/item.php
index bda17204e..7d07b337b 100644
--- a/db/item.php
+++ b/db/item.php
@@ -10,14 +10,20 @@
*
*/
-namespace OCA\News;
+namespace OCA\News\Db;
+
+class Item extends Entity {
+
+
+}
/**
* This class models an item.
*
* It encapsulate a SimplePie_Item object and adds a status flag to it
*/
-class Item {
+
+/*class Item {
private $url;
private $title;
@@ -92,10 +98,6 @@ class Item {
return ($this->status & StatusFlag::IMPORTANT);
}
- /**
- * NOTE: this is needed to store items in the database, otherwise
- * the status of an item should be retrieved with methods: isRead(), isImportant(), ...
- */
public function getStatus() {
return $this->status;
}
@@ -104,10 +106,6 @@ class Item {
$this->status = $status;
}
- /* change the following method with set/get magic methods
- * http://www.php.net/manual/en/language.oop5.overloading.php#object.get
- */
-
public function getTitle() {
return $this->title;
}
@@ -166,3 +164,4 @@ class Item {
}
}
+*/ \ No newline at end of file