__call()
__construct()
addAuthor()
addAuthors()
addCategories()
addCategory()
createSource()
getAuthors()
getCategories()
getCommentCount()
getCommentFeedLinks()
getCommentLink()
getContent()
getCopyright()
getDateCreated()
getDateModified()
getDescription()
getEnclosure()
getEncoding()
getExtension()
getExtensions()
getId()
getLink()
getLinks()
getSource()
getTitle()
getType()
remove()
setCommentCount()
setCommentFeedLink()
setCommentFeedLinks()
setCommentLink()
setContent()
setCopyright()
setDateCreated()
setDateModified()
setDescription()
setEnclosure()
setEncoding()
setId()
setLink()
setSource()
setTitle()
setType()
_loadExtensions()
$data
$extensions
$type
__call(string $method, array $args) : mixed
string
array
\Zend\Feed\Writer\Exception\BadMethodCallException |
if no extensions implements the method |
---|
mixed
__construct()
addAuthor(array $author) : \Zend\Feed\Writer\Entry
The following option keys are supported: 'name' => (string) The name 'email' => (string) An optional email 'uri' => (string) An optional and valid URI
array
\Zend\Feed\Writer\Exception\InvalidArgumentException |
If any value of $author not follow the format. |
---|
addCategory(array $category) : \Zend\Feed\Writer\Entry
createSource() : \Zend\Feed\Writer\Source
This is NOT added to the current feed automatically, but is necessary to create a container with some initial values preset based on the current feed data.
getAuthors() : array
array
getCategories() : string | null
string
null
getCommentCount() : int
int
getCommentFeedLinks() : string
string
getCommentLink() : string
string
getContent() : string
string
getCopyright() : string
string
getDateCreated() : string
string
getDateModified() : string
string
getDescription() : string
string
getEnclosure() : array
array
getEncoding() : string | null
string
null
getExtension(string $name) : object
string
object
getExtensions() : array
array
getId() : string
string
getLink() : string | null
string
null
getLinks() : array
array
getTitle() : string
string
getType() : string
string
Value will be "rss" or "atom"setCommentCount(int $count) : \Zend\Feed\Writer\Entry
setCommentFeedLink(array $link) : \Zend\Feed\Writer\Entry
setCommentFeedLinks(array $links) : \Zend\Feed\Writer\Entry
Each link is an array with keys "uri" and "type", where type is one of: "atom", "rss" or "rdf".
array
setCommentLink(string $link) : \Zend\Feed\Writer\Entry
setContent(string $content) : \Zend\Feed\Writer\Entry
setCopyright(string $copyright) : \Zend\Feed\Writer\Entry
string
\Zend\Feed\Writer\Exception\InvalidArgumentException |
---|
setDateCreated(null | int | \DateTime $date) : \Zend\Feed\Writer\Entry
nullint\DateTime
\Zend\Feed\Writer\Exception\InvalidArgumentException |
---|
setDateModified(null | int | \DateTime $date) : \Zend\Feed\Writer\Entry
nullint\DateTime
\Zend\Feed\Writer\Exception\InvalidArgumentException |
---|
setDescription(string $description) : \Zend\Feed\Writer\Entry
string
\Zend\Feed\Writer\Exception\InvalidArgumentException |
---|
setEnclosure(array $enclosure) : \Zend\Feed\Writer\Entry
The array parameter may contain the keys 'uri', 'type' and 'length'. Only 'uri' is required for Atom, though the others must also be provided or RSS rendering (where they are required) will throw an Exception.
array
\Zend\Feed\Writer\Exception\InvalidArgumentException |
---|
setEncoding(string $encoding) : \Zend\Feed\Writer\Entry
setId(string $id) : \Zend\Feed\Writer\Entry
setLink(string $link) : \Zend\Feed\Writer\Entry
setSource(\Zend\Feed\Writer\Source $source) : \Zend\Feed\Writer\Entry
setTitle(string $title) : \Zend\Feed\Writer\Entry
setType(string $type) : \Zend\Feed\Writer\Entry
This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.
string
_loadExtensions() : void
$data : array
$extensions : array
$type : string