| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | * @todo Improve documentation |
||
| 10 | * @package cwp-core |
||
| 11 | */ |
||
| 12 | use SilverStripe\Control\Controller; |
||
| 13 | use SilverStripe\Control\RSS\RSSFeed; |
||
| 14 | use SilverStripe\Core\Convert; |
||
| 15 | use SilverStripe\ORM\FieldType\DBHTMLText; |
||
| 16 | use SilverStripe\ORM\SS_List; |
||
| 17 | use SilverStripe\View\Requirements; |
||
| 18 | |||
| 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 | ); |
||
| 75 |