summaryrefslogtreecommitdiffstats
path: root/lib/item.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/item.php')
-rw-r--r--lib/item.php32
1 files changed, 31 insertions, 1 deletions
diff --git a/lib/item.php b/lib/item.php
index 95a64859c..3d63e24f6 100644
--- a/lib/item.php
+++ b/lib/item.php
@@ -35,7 +35,8 @@ class Item {
private $author;
private $date; //date is stored in the Unix format
private $feedTitle;
-
+ private $enclosure; // Item_Enclosure object containing media attachment information
+
public function __construct($url, $title, $guid, $body, $id = null) {
$this->title = $title;
$this->url = $url;
@@ -161,4 +162,33 @@ class Item {
public function setDate($date) {
$this->date = $date;
}
+
+ public function getEnclosure() {
+ return $this->enclosure;
+ }
+
+ public function setEnclosure(Item_Enclosure $enclosure) {
+ $this->enclosure = $enclosure;
+ }
+}
+
+class Item_Enclosure {
+ private $mimetype;
+ private $link;
+
+ public function getMimeType() {
+ return $this->mimetype;
+ }
+
+ public function setMimeType($mimetype) {
+ $this->mimetype = $mimetype;
+ }
+
+ public function getLink() {
+ return $this->link;
+ }
+
+ public function setLink($link) {
+ $this->link = $link;
+ }
}