2064. Class

2064.1. Zend\Feed\Writer\AbstractFeed

2064.1.1. Methods

2064.1.1.1. __construct

__construct()

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

2064.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:AbstractFeed

2064.1.1.3. addAuthors

addAuthors()

Set an array with feed authors

Parameters:array
Return type:AbstractFeed

2064.1.1.4. setCopyright

setCopyright()

Set the copyright entry

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.5. setDateCreated

setDateCreated()

Set the feed creation date

Parameters:null|integer|DateTime
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.6. setDateModified

setDateModified()

Set the feed modification date

Parameters:null|integer|DateTime
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.7. setLastBuildDate

setLastBuildDate()

Set the feed last-build date. Ignored for Atom 1.0.

Parameters:null|integer|DateTime
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.8. setDescription

setDescription()

Set the feed description

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.9. setGenerator

setGenerator()

Set the feed generator entry

Parameters:
  • array|string
  • null|string
  • null|string
Throws ExceptionInvalidArgumentException:
 
Return type:

AbstractFeed

2064.1.1.10. setId

setId()

Set the feed ID - URI or URN (via PCRE pattern) supported

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.11. _validateTagUri

_validateTagUri()

Validate a URI using the tag scheme (RFC 4151)

Parameters:string
Return type:bool

2064.1.1.12. setImage

setImage()

Set a feed image (URI at minimum). Parameter is a single array with the required key ‘uri’. When rendering as RSS, the required keys are ‘uri’, ‘title’ and ‘link’. RSS also specifies three optional parameters ‘width’, ‘height’ and ‘description’. Only ‘uri’ is required and used for Atom rendering.

Parameters:array
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.13. setLanguage

setLanguage()

Set the feed language

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.16. setTitle

setTitle()

Set the feed title

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.17. setEncoding

setEncoding()

Set the feed character encoding

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.18. setBaseUrl

setBaseUrl()

Set the feed’s base URL

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.19. addHub

addHub()

Add a Pubsubhubbub hub endpoint URL

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.20. addHubs

addHubs()

Add Pubsubhubbub hub endpoint URLs

Parameters:array
Return type:AbstractFeed

2064.1.1.21. addCategory

addCategory()

Add a feed category

Parameters:array
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractFeed

2064.1.1.22. addCategories

addCategories()

Set an array of feed categories

Parameters:array
Return type:AbstractFeed

2064.1.1.23. getAuthor

getAuthor()

Get a single author

Parameters:int
Return type:string|null

2064.1.1.24. getAuthors

getAuthors()

Get an array with feed authors

Return type:array

2064.1.1.25. getCopyright

getCopyright()

Get the copyright entry

Return type:string|null

2064.1.1.26. getDateCreated

getDateCreated()

Get the feed creation date

Return type:string|null

2064.1.1.27. getDateModified

getDateModified()

Get the feed modification date

Return type:string|null

2064.1.1.28. getLastBuildDate

getLastBuildDate()

Get the feed last-build date

Return type:string|null

2064.1.1.29. getDescription

getDescription()

Get the feed description

Return type:string|null

2064.1.1.30. getGenerator

getGenerator()

Get the feed generator entry

Return type:string|null

2064.1.1.31. getId

getId()

Get the feed ID

Return type:string|null

2064.1.1.32. getImage

getImage()

Get the feed image URI

Return type:array

2064.1.1.33. getLanguage

getLanguage()

Get the feed language

Return type:string|null

2064.1.1.36. getTitle

getTitle()

Get the feed title

Return type:string|null

2064.1.1.37. getEncoding

getEncoding()

Get the feed character encoding

Return type:string|null

2064.1.1.38. getBaseUrl

getBaseUrl()

Get the feed’s base url

Return type:string|null

2064.1.1.39. getHubs

getHubs()

Get the URLs used as Pubsubhubbub hubs endpoints

Return type:string|null

2064.1.1.40. getCategories

getCategories()

Get the feed categories

Return type:string|null

2064.1.1.41. reset

reset()

Resets the instance and deletes all data

Return type:void

2064.1.1.42. 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:AbstractFeed

2064.1.1.43. getType

getType()

Retrieve the current or last feed type exported.

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

2064.1.1.44. remove

remove()

Unset a specific data point

Parameters:string
Return type:AbstractFeed

2064.1.1.45. __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

2064.1.1.46. _loadExtensions

_loadExtensions()

Load extensions from Zend_Feed_Writer

Return type:void