You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: docs/book/writer.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,9 +213,9 @@ Method | Description
213
213
`setFeedLink()` | Set a URI to an XML feed, whether it is to the feed being generated, or an alternate URI pointing to the same feed but in a different format. At a minimum, it is recommended to include a link to the feed being generated so it has an identifiable final URI allowing a client to track its location changes without necessitating constant redirects. The parameters are the feed URI and type (one of "atom", "rss", or "rdf").
214
214
`addAuthors()` | Sets the data for authors. The parameter is an array of array,s where each sub-array may contain the keys "name", "email", and "uri". The "uri" value is only applicable for Atom feeds, since RSS contains no facility to show it. For RSS 2.0, rendering will create two elements: an author element containing the email reference with the name in brackets, and a Dublin Core creator element only containing the name.
215
215
`addAuthor()` | Sets the data for a single author following the same array format as described above for a single sub-array.
216
-
`setDateCreated()` | Sets the date on which this feed was created. Generally only applicable to Atom, where it represents the date the resource described by an Atom 1.0 document was created. The expected parameter may be a UNIX timestamp ora`DateTime`object.
217
-
`setDateModified()` | Sets the date on which this feed was last modified. The expected parameter may be a UNIX timestamp ora`DateTime`object.
218
-
`setLastBuildDate()` | Sets the date on which this feed was last build. The expected parameter may be a UNIX timestamp ora`DateTime`object. This will only be rendered for RSS 2.0 feeds, and is automatically rendered as the current date by default when not explicitly set.
216
+
`setDateCreated()` | Sets the date on which this feed was created. Generally only applicable to Atom, where it represents the date the resource described by an Atom 1.0 document was created. The expected parameter may be a UNIX timestamp oran object implementing`DateTimeInterface` such as`DateTime`or`DateTimeImmutable`.
217
+
`setDateModified()` | Sets the date on which this feed was last modified. The expected parameter may be a UNIX timestamp oran object implementing`DateTimeInterface` such as`DateTime`or`DateTimeImmutable`.
218
+
`setLastBuildDate()` | Sets the date on which this feed was last build. The expected parameter may be a UNIX timestamp oran object implementing`DateTimeInterface` such as`DateTime`or`DateTimeImmutable`. This will only be rendered for RSS 2.0 feeds, and is automatically rendered as the current date by default when not explicitly set.
219
219
`setLanguage()` | Sets the language of the feed. This will be omitted unless set.
220
220
`setGenerator()` | Allows the setting of a generator. The parameter should be an array containing the keys "name", "version", and "uri". If omitted a default generator will be added referencing`Zend\Feed\Writer`, the current zend-version version, and the Framework's URI.
221
221
`setCopyright()` | Sets a copyright notice associated with the feed.
@@ -257,8 +257,8 @@ Method | Description
257
257
`setLink()` | Set a URI to the HTML website containing the same or similar information as this entry (i.e. if the feed is from a blog, it should provide the blog article's URI where the HTML version of the entry can be read).
258
258
`addAuthors()` | Sets the data for authors. The parameter is an array of array,s where each sub-array may contain the keys "name", "email", and "uri". The "uri" value is only applicable for Atom feeds, since RSS contains no facility to show it. For RSS 2.0, rendering will create two elements: an author element containing the email reference with the name in brackets, and a Dublin Core creator element only containing the name.
259
259
`addAuthor()` | Sets the data for a single author following the same format as described above for a single sub-array.
260
-
`setDateCreated()` | Sets the date on which this entry was created. Generally only applicable to Atom where it represents the date the resource described by an Atom 1.0 document was created. The expected parameter may be a UNIX timestamp ora`DateTime`object. If omitted, the date used will be the current date and time.
261
-
`setDateModified()` | Sets the date on which this entry was last modified. The expected parameter may be a UNIX timestamp ora`DateTime`object. If omitted, the date used will be the current date and time.
260
+
`setDateCreated()` | Sets the date on which this entry was created. Generally only applicable to Atom where it represents the date the resource described by an Atom 1.0 document was created. The expected parameter may be a UNIX timestamp oran object implementing`DateTimeInterface` such as`DateTime`or`DateTimeImmutable`. If omitted, the date used will be the current date and time.
261
+
`setDateModified()` | Sets the date on which this entry was last modified. The expected parameter may be a UNIX timestamp oran object implementing`DateTimeInterface` such as`DateTime`or`DateTimeImmutable`. If omitted, the date used will be the current date and time.
262
262
`setCopyright()` | Sets a copyright notice associated with the entry.
263
263
`addCategories()` | Accepts an array of categories for rendering, where each element is itself an array whose possible keys include "term", "label", and "scheme". The "term" is a typically a category name suitable for inclusion in a URI. The "label" may be a human readable category name supporting special characters (it is encoded during rendering) and is a required key. The "scheme" (called the domain in RSS) is optional but must be a valid URI.
264
264
`addCategory()` | Sets the data for a single category following the same format as described above for a single sub-array.