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 | 4 | protected $baseURI=NULL; |
| 5 | 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 | 8 | parent::__construct(); |
| 9 | 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 | 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 | 21 | public function &newEntry(){ |
| 21 | 22 | $entry=$this->newElement('entry'); |
| 22 | 23 | $this->feed->appendChild($entry); | ... | ... |