FeedItemBuilder
in package
Provides an RSS feed item builder with Atom extensions.
Table of Contents
Methods
- createElement() : DOMElement
- Creates an XML document based on this item builder.
- setAuthorName() : void
- Sets the name of the author of this feed item.
- setAuthorUrl() : void
- Sets the URL for the author of this feed item. Has no effect if no author name is provided.
- setCommentsUrl() : void
- Sets the URL to where comments can be made on the content this feed item represents.
- setContentUrl() : void
- Sets the URL to the content this feed item represents.
- setCreatedAt() : void
- Sets the creation time for this feed item.
- setDescription() : void
- Sets the description of the feed item, may contain HTML.
- setTitle() : void
- Sets the title of this feed item.
- setUpdatedAt() : void
- Sets the last updated time for this feed item.
Methods
createElement()
Creates an XML document based on this item builder.
public
createElement(DOMDocument $document) : DOMElement
Parameters
- $document : DOMDocument
-
Document to which this element is to be appended.
Return values
DOMElement —Element created from this builder.
setAuthorName()
Sets the name of the author of this feed item.
public
setAuthorName(string $name) : void
Parameters
- $name : string
-
Name of the author.
setAuthorUrl()
Sets the URL for the author of this feed item. Has no effect if no author name is provided.
public
setAuthorUrl(string $url) : void
Parameters
- $url : string
-
URL for the author.
setCommentsUrl()
Sets the URL to where comments can be made on the content this feed item represents.
public
setCommentsUrl(string $url) : void
Parameters
- $url : string
-
Comments URL.
setContentUrl()
Sets the URL to the content this feed item represents.
public
setContentUrl(string $url) : void
Parameters
- $url : string
-
Content URL.
setCreatedAt()
Sets the creation time for this feed item.
public
setCreatedAt(DateTimeInterface|int $createdAt) : void
Parameters
- $createdAt : DateTimeInterface|int
-
Timestamp at which the feed item was created.
setDescription()
Sets the description of the feed item, may contain HTML.
public
setDescription(string $description) : void
Parameters
- $description : string
-
Item description.
setTitle()
Sets the title of this feed item.
public
setTitle(string $title) : void
Parameters
- $title : string
-
Item title.
setUpdatedAt()
Sets the last updated time for this feed item.
public
setUpdatedAt(DateTimeInterface|int $updatedAt) : void
Parameters
- $updatedAt : DateTimeInterface|int
-
Timestamp at which the feed item was last updated.