2071. Class

2071.1. Zend\Feed\Writer\Feed

2071.1.1. Methods

2071.1.1.1. createEntry

createEntry()

Creates a new ZendFeedWriterEntry 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:ZendFeedWriterEntry

2071.1.1.2. addTombstone

addTombstone()

Appends a ZendFeedWriterDeleted object representing a new entry tombstone to the feed data container’s internal group of entries.

Parameters:Deleted
Return type:void

2071.1.1.3. createTombstone

createTombstone()

Creates a new ZendFeedWriterDeleted 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:Deleted

2071.1.1.4. addEntry

addEntry()

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

Parameters:Entry
Return type:Feed

2071.1.1.5. removeEntry

removeEntry()

Removes a specific indexed entry from the internal queue. Entries must be added to a feed container in order to be indexed.

Parameters:int
Throws ExceptionInvalidArgumentException:
 
Return type:Feed

2071.1.1.6. getEntry

getEntry()

Retrieve a specific indexed entry from the internal queue. Entries must be added to a feed container in order to be indexed.

Parameters:int
Throws ExceptionInvalidArgumentException:
 

2071.1.1.7. orderByDate

orderByDate()

Orders all indexed entries by date, thus offering date ordered readable content where a parser (or Homo Sapien) ignores the generic rule that XML element order is irrelevant and has no intrinsic meaning.

Using this method will alter the original indexation.

Return type:Feed

2071.1.1.8. count

count()

Get the number of feed entries. Required by the Iterator interface.

Return type:int

2071.1.1.9. current

current()

Return the current entry

Return type:Entry

2071.1.1.10. key

key()

Return the current feed key

Return type:mixed

2071.1.1.12. rewind

rewind()

Reset the pointer in the feed object

Return type:void

2071.1.1.13. valid

valid()

Check to see if the iterator is still valid

Return type:bool

2071.1.1.14. export

export()

Attempt to build and return the feed resulting from the data set

Parameters:
  • string – The feed type “rss” or “atom” to export as
  • bool
Throws ExceptionInvalidArgumentException:
 
Return type:

string