mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge branch 'mrsmuneton-RssFeedArgumentsDocNote' into 3.1
Closes #2798
This commit is contained in:
commit
cc9ce325bd
@ -21,7 +21,7 @@ define an AbsoluteLink() method.
|
|||||||
RSSFeed::linkToFeed($link, $title)
|
RSSFeed::linkToFeed($link, $title)
|
||||||
|
|
||||||
This line should go in your `[api:Controller]` subclass in the action you want
|
This line should go in your `[api:Controller]` subclass in the action you want
|
||||||
to include the HTML link.
|
to include the HTML link. Not all arguments are required, see `[api:RSSFeed]` and example below. Last Modified Time is expected in seconds like time().
|
||||||
|
|
||||||
:::php
|
:::php
|
||||||
$feed = new RSSFeed(
|
$feed = new RSSFeed(
|
||||||
@ -31,7 +31,9 @@ to include the HTML link.
|
|||||||
$description,
|
$description,
|
||||||
$titleField,
|
$titleField,
|
||||||
$descriptionField,
|
$descriptionField,
|
||||||
$authorField
|
$authorField,
|
||||||
|
$lastModifiedTime,
|
||||||
|
$etag
|
||||||
);
|
);
|
||||||
|
|
||||||
Creates a new `[api:RSSFeed]` instance to be returned. The arguments notify
|
Creates a new `[api:RSSFeed]` instance to be returned. The arguments notify
|
||||||
|
Loading…
x
Reference in New Issue
Block a user