Optional: Add a category category
void
addCategory
(string $category, [mixed $domain = '_no_domain_'])
-
string
$category: category
Optional: Add an enclosure. As of this writing the RSS 2.0 spec does not allow multiple enclosures. Some aggregators however, support them anyway and the one's I've (Adam) tested in simply ignore the extra enclosures.
Add multiple enclosures at your own risk.
void
addEnclosure
(string $url, integer $length, string $mimeType)
-
string
$url
-
integer
$length
-
string
$mimeType
Answer the description
string
getDescription
()
Answer the PubDate
object or
getPubDate
()
Optional: Add a category to the beginning of the list
void
prependCategory
(string $category, [mixed $domain = '_no_domain_'])
-
string
$category: category
Optional: Set the author name and email
void
setAuthor
(string $name, [optional $email = 'nobody@example.net'])
-
string
$name
-
optional
$email: string $email
Optional: Set comments URL
void
setCommentsLink
(string $commentsLink)
Required: Set the description
void
setDescription
(string $description)
Optional: Set the GUID and isPermaLink
void
setGUID
(string $guid, [optional $isPermaLink = true])
-
string
$guid
-
optional
$isPermaLink: boolean $isPermaLink
Optional: Set the link, if it is the GUID, then the GUID will be set to the link.
void
setLink
(string $link, [optional $isGUID = true])
-
string
$link
-
optional
$isGUID: boolean $isGUID
Optional: Set the publish date
void
setPubDate
(object DateAndTime $pubDate)
-
object DateAndTime
$pubDate
Optional: Set source
void
setSource
(string $sourceTitle, string $sourceLink)
-
string
$sourceTitle
-
string
$sourceLink
Required: Set the title
void
setTitle
(string $title)
print out the item XML
void
write
()