Commit b949fc2de430cacb0ec4815e196623ec1b2f640f
1 parent
b712449a
PT: 865156 - Removed automatic FEED tag generation in atompub response feeds
Showing
1 changed file
with
7 additions
and
6 deletions
webservice/classes/atompub/KT_atom_responseFeed.inc.php
| @@ -4,19 +4,20 @@ class KT_atom_responseFeed extends KT_atom_baseDoc { | @@ -4,19 +4,20 @@ class KT_atom_responseFeed extends KT_atom_baseDoc { | ||
| 4 | protected $baseURI=NULL; | 4 | protected $baseURI=NULL; |
| 5 | protected $feed=NULL; | 5 | protected $feed=NULL; |
| 6 | 6 | ||
| 7 | - public function __construct($baseURI=NULL,$title=NULL,$link=NULL,$updated=NULL,$author=NULL,$id=NULL, $workspace = null){ | 7 | + public function __construct($baseURI=NULL){ |
| 8 | parent::__construct(); | 8 | parent::__construct(); |
| 9 | $this->baseURI = $baseURI; | 9 | $this->baseURI = $baseURI; |
| 10 | - $this->constructHeader(); | 10 | + $this->feed =&$this->DOM; |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | - protected function constructHeader(){ | ||
| 14 | - $feed=$this->newElement('feed'); | 13 | + protected function addFeedTag(){ |
| 14 | + $feed = $this->newElement('feed'); | ||
| 15 | $feed->appendChild($this->newAttr('xmlns','http://www.w3.org/2005/Atom')); | 15 | $feed->appendChild($this->newAttr('xmlns','http://www.w3.org/2005/Atom')); |
| 16 | - $this->feed=&$feed; | ||
| 17 | - $this->DOM->appendChild($this->feed); | 16 | + $this->feed = &$feed; |
| 17 | + $this->DOM->appendChild($this->feed); | ||
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | + | ||
| 20 | public function &newEntry(){ | 21 | public function &newEntry(){ |
| 21 | $entry=$this->newElement('entry'); | 22 | $entry=$this->newElement('entry'); |
| 22 | $this->feed->appendChild($entry); | 23 | $this->feed->appendChild($entry); |