summaryrefslogtreecommitdiffstats
path: root/lib/feed.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-30 14:08:36 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-30 14:08:36 -0400
commitfd5b815e587ccc3642995346cd03eca4e0a0707f (patch)
tree2cc9bdf3de5e45b8f23e96673f4d8625651f81df /lib/feed.php
parenta5438863a4e88fb5c9e166e8810f493a1feb2cf0 (diff)
opml parser completed; still needs testing
Diffstat (limited to 'lib/feed.php')
-rw-r--r--lib/feed.php20
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/feed.php b/lib/feed.php
index 59db6f7cc..6b1409440 100644
--- a/lib/feed.php
+++ b/lib/feed.php
@@ -20,36 +20,40 @@ class OC_News_Feed extends OC_News_Collection {
private $items; //array that contains all the items of the feed
private $favicon;
- public function __construct($url, $title, $items, $id = null){
+ public function __construct($url, $title, $items, $id = null) {
$this->url = $url;
$this->title = $title;
$this->items = $items;
- if ($id !== null){
+ if ($id !== null) {
parent::__construct($id);
}
}
- public function getUrl(){
+ public function getUrl() {
return $this->url;
}
- public function getTitle(){
+ public function getTitle() {
return $this->title;
}
+
+ public function setTitle($title) {
+ $this->title = $title;
+ }
- public function getFavicon(){
+ public function getFavicon() {
return $this->favicon;
}
- public function setFavicon($favicon){
+ public function setFavicon($favicon) {
$this->favicon = $favicon;
}
- public function setItems($items){
+ public function setItems($items) {
$this->items = $items;
}
- public function getItems(){
+ public function getItems() {
return $this->items;
}