2069. Class

2069.1. Zend\Feed\Writer\Entry

2069.1.1. Methods

2069.1.1.1. __construct

__construct()

Constructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container.

2069.1.1.2. addAuthor

addAuthor()

Set a single author

The following option keys are supported: ‘name’ => (string) The name ‘email’ => (string) An optional email ‘uri’ => (string) An optional and valid URI

Parameters:array
Throws ExceptionInvalidArgumentException:
 If any value of $author not follow the format.
Return type:Entry

2069.1.1.3. addAuthors

addAuthors()

Set an array with feed authors

Parameters:array
Return type:Entry

2069.1.1.4. setEncoding

setEncoding()

Set the feed character encoding

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.5. getEncoding

getEncoding()

Get the feed character encoding

Return type:string|null

2069.1.1.6. setCopyright

setCopyright()

Set the copyright entry

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.7. setContent

setContent()

Set the entry’s content

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.8. setDateCreated

setDateCreated()

Set the feed creation date

Parameters:string|null|DateTime
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.9. setDateModified

setDateModified()

Set the feed modification date

Parameters:string|null|DateTime
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.10. setDescription

setDescription()

Set the feed description

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.11. setId

setId()

Set the feed ID

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.13. setCommentCount

setCommentCount()

Set the number of comments associated with this entry

Parameters:int
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.17. setTitle

setTitle()

Set the feed title

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.18. getAuthors

getAuthors()

Get an array with feed authors

Return type:array

2069.1.1.19. getContent

getContent()

Get the entry content

Return type:string

2069.1.1.20. getCopyright

getCopyright()

Get the entry copyright information

Return type:string

2069.1.1.21. getDateCreated

getDateCreated()

Get the entry creation date

Return type:string

2069.1.1.22. getDateModified

getDateModified()

Get the entry modification date

Return type:string

2069.1.1.23. getDescription

getDescription()

Get the entry description

Return type:string

2069.1.1.24. getId

getId()

Get the entry ID

Return type:string

2069.1.1.27. getTitle

getTitle()

Get the entry title

Return type:string

2069.1.1.28. getCommentCount

getCommentCount()

Get the number of comments/replies for current entry

Return type:integer

2069.1.1.31. addCategory

addCategory()

Add a entry category

Parameters:array
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.32. addCategories

addCategories()

Set an array of entry categories

Parameters:array
Return type:Entry

2069.1.1.33. getCategories

getCategories()

Get the entry categories

Return type:string|null

2069.1.1.34. setEnclosure

setEnclosure()

Adds an enclosure to the 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.

Parameters:array
Throws ExceptionInvalidArgumentException:
 
Return type:Entry

2069.1.1.35. getEnclosure

getEnclosure()

Retrieve an array of all enclosures to be added to entry.

Return type:array

2069.1.1.36. remove

remove()

Unset a specific data point

Parameters:string
Return type:Entry

2069.1.1.37. getExtensions

getExtensions()

Get registered extensions

Return type:array

2069.1.1.38. getExtension

getExtension()

Return an Extension object with the matching name (postfixed with _Entry)

Parameters:string
Return type:object

2069.1.1.39. setType

setType()

Set the current feed type being exported to “rss” or “atom”. This allows other objects to gracefully choose whether to execute or not, depending on their appropriateness for the current type, e.g. renderers.

Parameters:string
Return type:Entry

2069.1.1.40. getType

getType()

Retrieve the current or last feed type exported.

Return type:string Value will be “rss” or “atom”

2069.1.1.41. __call

__call()

Method overloading: call given method on first extension implementing it

Parameters:
  • string
  • array
Return type:

mixed

Throws :

ExceptionBadMethodCallException if no extensions implements the method

2069.1.1.42. createSource

createSource()

Creates a new Zend_Feed_Writer_Source data container for use. 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.

Return type:Source

2069.1.1.43. setSource

setSource()

Appends a Zend_Feed_Writer_Entry object representing a new entry/item the feed data container’s internal group of entries.

Parameters:Source
Return type:Entry

2069.1.1.44. getSource

getSource()

@return Source

2069.1.1.45. _loadExtensions

_loadExtensions()

Load extensions from Zend_Feed_Writer

Return type:void