Constructor: Primarily triggers the registration of core extensions and loads those appropriate to this data container.
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 |
Set an array with feed authors
| Parameters: | array – |
|---|---|
| Return type: | AbstractFeed |
Set the copyright entry
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set the feed creation date
| Parameters: | null|integer|DateTime – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set the feed modification date
| Parameters: | null|integer|DateTime – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set the feed last-build date. Ignored for Atom 1.0.
| Parameters: | null|integer|DateTime – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set the feed description
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set the feed generator entry
| Parameters: |
|
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set the feed ID - URI or URN (via PCRE pattern) supported
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Validate a URI using the tag scheme (RFC 4151)
| Parameters: | string – |
|---|---|
| Return type: | bool |
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 |
Set the feed language
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set a link to the HTML source
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set a link to an XML feed for any feed type/version
| Parameters: |
|
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set the feed title
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set the feed character encoding
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set the feed’s base URL
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Add a Pubsubhubbub hub endpoint URL
| Parameters: | string – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Add Pubsubhubbub hub endpoint URLs
| Parameters: | array – |
|---|---|
| Return type: | AbstractFeed |
Add a feed category
| Parameters: | array – |
|---|---|
| Throws ExceptionInvalidArgumentException: | |
| Return type: | AbstractFeed |
Set an array of feed categories
| Parameters: | array – |
|---|---|
| Return type: | AbstractFeed |
Get the feed modification date
| Return type: | string|null |
|---|
Get the feed last-build date
| Return type: | string|null |
|---|
Get the URLs used as Pubsubhubbub hubs endpoints
| Return type: | string|null |
|---|
Resets the instance and deletes all data
| Return type: | void |
|---|
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 |
Retrieve the current or last feed type exported.
| Return type: | string Value will be “rss” or “atom” |
|---|
Unset a specific data point
| Parameters: | string – |
|---|---|
| Return type: | AbstractFeed |