| Total Complexity | 3 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class CwpAtomFeed extends RSSFeed |
||
| 20 | { |
||
| 21 | public function __construct( |
||
| 22 | SS_List $entries, |
||
| 23 | $link, |
||
| 24 | $title, |
||
| 25 | $description = null, |
||
| 26 | $titleField = "Title", |
||
| 27 | $descriptionField = "Content", |
||
| 28 | $authorField = null, |
||
| 29 | $lastModified = null, |
||
| 30 | $etag = null |
||
| 31 | ) { |
||
| 32 | parent::__construct( |
||
| 33 | $entries, |
||
| 34 | $link, |
||
| 35 | $title, |
||
| 36 | $description, |
||
| 37 | $titleField, |
||
| 38 | $descriptionField, |
||
| 39 | $authorField, |
||
| 40 | $lastModified |
||
| 41 | ); |
||
| 42 | |||
| 43 | $this->setTemplate(__CLASS__); |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Include an link to the feed |
||
| 48 | * |
||
| 49 | * @param string $url URL of the feed |
||
| 50 | * @param string $title Title to show |
||
| 51 | */ |
||
| 52 | public static function linkToFeed($url, $title = null) |
||
| 58 | ); |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Output the feed to the browser |
||
| 63 | * |
||
| 64 | * @return DBHTMLText |
||
| 65 | */ |
||
| 66 | public function outputToBrowser() |
||
| 73 | } |
||
| 74 | } |
||
| 75 |