| @@ 369-377 (lines=9) @@ | ||
| 366 | return $rss->outputToBrowser(); |
|
| 367 | } |
|
| 368 | ||
| 369 | public function atom() |
|
| 370 | { |
|
| 371 | $atom = CwpAtomFeed::create( |
|
| 372 | $this->Updates()->sort('Created DESC')->limit(20), |
|
| 373 | $this->Link('atom'), |
|
| 374 | $this->getSubscriptionTitle() |
|
| 375 | ); |
|
| 376 | return $atom->outputToBrowser(); |
|
| 377 | } |
|
| 378 | } |
|
| 379 | ||
| @@ 15-24 (lines=10) @@ | ||
| 12 | 'atom', |
|
| 13 | ]; |
|
| 14 | ||
| 15 | public function rss() |
|
| 16 | { |
|
| 17 | $rss = RSSFeed::create( |
|
| 18 | $this->Updates()->sort('Created DESC')->limit(20), |
|
| 19 | $this->Link('rss'), |
|
| 20 | $this->getSubscriptionTitle() |
|
| 21 | ); |
|
| 22 | $rss->setTemplate('NewsHolder_rss'); |
|
| 23 | return $rss->outputToBrowser(); |
|
| 24 | } |
|
| 25 | ||
| 26 | public function atom() |
|
| 27 | { |
|
| @@ 26-35 (lines=10) @@ | ||
| 23 | return $rss->outputToBrowser(); |
|
| 24 | } |
|
| 25 | ||
| 26 | public function atom() |
|
| 27 | { |
|
| 28 | $atom = CwpAtomFeed::create( |
|
| 29 | $this->Updates()->sort('Created DESC')->limit(20), |
|
| 30 | $this->Link('atom'), |
|
| 31 | $this->getSubscriptionTitle() |
|
| 32 | ); |
|
| 33 | $atom->setTemplate('NewsHolder_atom'); |
|
| 34 | return $atom->outputToBrowser(); |
|
| 35 | } |
|
| 36 | } |
|
| 37 | ||