Feed/Writer/Feed.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Feed_Writer
- Version
- $Id$
\Zend_Feed_Writer_Feed
- Implements
- Parent(s)
- \Zend_Feed_Writer_Feed_FeedAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
addEntry(\Zend_Feed_Writer_Entry $entry) : void
Appends a Zend_Feed_Writer_Entry object representing a new entry/item the feed data container's internal group of entries.
Name | Type | Description |
---|---|---|
$entry | \Zend_Feed_Writer_Entry |
addTombstone( $deleted) : void
Appends a Zend_Feed_Writer_Deleted object representing a new entry tombstone to the feed data container's internal group of entries.
Name | Type | Description |
---|---|---|
$deleted |
count() : int
Get the number of feed entries.
Type | Description |
---|---|
int |
createEntry() : \Zend_Feed_Writer_Entry
Creates a new Zend_Feed_Writer_Entry 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.
Type | Description |
---|---|
\Zend_Feed_Writer_Entry |
createTombstone() : \Zend_Feed_Writer_Deleted
Creates a new Zend_Feed_Writer_Deleted 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.
Type | Description |
---|---|
\Zend_Feed_Writer_Deleted |
current() : \Zend_Feed_Reader_Entry_Interface
Return the current entry
Type | Description |
---|---|
\Zend_Feed_Reader_Entry_Interface |
export(string $type, bool $ignoreExceptions = false) : string
Attempt to build and return the feed resulting from the data set
Name | Type | Description |
---|---|---|
$type | string | The feed type "rss" or "atom" to export as |
$ignoreExceptions | bool |
Type | Description |
---|---|
string |
getEntry(int $index = 0) : void
Retrieve a specific indexed entry from the internal queue. Entries must be added to a feed container in order to be indexed.
Name | Type | Description |
---|---|---|
$index | int |
orderByDate() : void
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.
removeEntry(int $index) : void
Removes a specific indexed entry from the internal queue. Entries must be added to a feed container in order to be indexed.
Name | Type | Description |
---|---|---|
$index | int |