Feed/Writer/Feed/FeedAbstract.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_FeedAbstract
- Children
- \Zend_Feed_Writer_Feed
- \Zend_Feed_Writer_Source
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_data = array()array()Details- Type
- array
Methods

__call(string $method, array $args) : mixedMethod overloading: call given method on first extension implementing it
| Name | Type | Description |
|---|---|---|
| $method | string | |
| $args | array |
| Type | Description |
|---|---|
| mixed |
| Exception | Description |
|---|---|
| \Zend_Feed_Exception | if no extensions implements the method |

__construct() : voidConstructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container.

_validateTagUri(string $id) : boolValidate a URI using the tag scheme (RFC 4151)
| Name | Type | Description |
|---|---|---|
| $id | string |
| Type | Description |
|---|---|
| bool |

addAuthor( $name, $email = null, $uri = null) : string | nullSet a single author
| Name | Type | Description |
|---|---|---|
| $name | ||
| $uri |
| Type | Description |
|---|---|
| string | null |

addAuthors( $authors) : arraySet an array with feed authors
| Name | Type | Description |
|---|---|---|
| $authors |
| Type | Description |
|---|---|
| array |

addCategories(array $categories) : voidSet an array of feed categories
| Name | Type | Description |
|---|---|---|
| $categories | array |

addHub(string $url) : voidAdd a Pubsubhubbub hub endpoint URL
| Name | Type | Description |
|---|---|---|
| $url | string |

addHubs(array $urls) : voidAdd Pubsubhubbub hub endpoint URLs
| Name | Type | Description |
|---|---|---|
| $urls | array |

getAuthor(int $index = 0) : string | nullGet a single author
| Name | Type | Description |
|---|---|---|
| $index | int |
| Type | Description |
|---|---|
| string | null |

getHubs() : string | nullGet the URLs used as Pubsubhubbub hubs endpoints
| Type | Description |
|---|---|
| string | null |

getType() : stringRetrieve the current or last feed type exported.
| Type | Description |
|---|---|
| string | Value will be "rss" or "atom" |

setCopyright( $copyright) : string | nullSet the copyright entry
| Name | Type | Description |
|---|---|---|
| $copyright |
| Type | Description |
|---|---|
| string | null |

setDateModified( $date = null) : voidSet the feed modification date
| Name | Type | Description |
|---|---|---|
| $date |

setDescription( $description) : string | nullSet the feed description
| Name | Type | Description |
|---|---|---|
| $description |
| Type | Description |
|---|---|
| string | null |

setEncoding(string $encoding) : voidSet the feed character encoding
| Name | Type | Description |
|---|---|---|
| $encoding | string |

setFeedLink( $link, $type) : string | nullSet a link to an XML feed for any feed type/version
| Name | Type | Description |
|---|---|---|
| $link | ||
| $type |
| Type | Description |
|---|---|
| string | null |

setGenerator( $name, $version = null, $uri = null) : string | nullSet the feed generator entry
| Name | Type | Description |
|---|---|---|
| $name | ||
| $version | ||
| $uri |
| Type | Description |
|---|---|
| string | null |

setIcon(array $data) : voidSet a feed icon (URI at minimum). Parameter is a single array with the required key 'uri'. Only 'uri' is required and used for Atom rendering.
| Name | Type | Description |
|---|---|---|
| $data | array |

setId(string $id) : voidSet the feed ID - URI or URN (via PCRE pattern) supported
| Name | Type | Description |
|---|---|---|
| $id | string |

setImage(array $data) : voidSet 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.
| Name | Type | Description |
|---|---|---|
| $data | array |

setLanguage( $language) : string | nullSet the feed language
| Name | Type | Description |
|---|---|---|
| $language |
| Type | Description |
|---|---|
| string | null |

setLastBuildDate( $date = null) : voidSet the feed last-build date. Ignored for Atom 1.0.
| Name | Type | Description |
|---|---|---|
| $date |

setTitle( $title) : string | nullSet the feed title
| Name | Type | Description |
|---|---|---|
| $title |
| Type | Description |
|---|---|
| string | null |