Feed/Pubsubhubbub/Publisher.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Feed_Pubsubhubbub
- Version
- $Id$
\Zend_Feed_Pubsubhubbub_Publisher
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
array $_errors = array()
array()
Details- Type
- array
array $_hubUrls = array()
array()
Details- Type
- array
array $_parameters = array()
array()
Details- Type
- array
Methods
__construct( $config = null) : void
Constructor; accepts an array or Zend_Config instance to preset options for the Publisher without calling all supported setter methods in turn.
Name | Type | Description |
---|---|---|
$config |
_getHttpClient() : \Zend_Http_Client
Get a basic prepared HTTP client for use
Type | Description |
---|---|
\Zend_Http_Client |
addHubUrl(string $url) : \Zend_Feed_Pubsubhubbub_Publisher
Add a Hub Server URL supported by Publisher
Name | Type | Description |
---|---|---|
$url | string |
Type | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Publisher |
addHubUrls(array $urls) : \Zend_Feed_Pubsubhubbub_Publisher
Add an array of Hub Server URLs supported by Publisher
Name | Type | Description |
---|---|---|
$urls | array |
Type | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Publisher |
addUpdatedTopicUrl(string $url) : \Zend_Feed_Pubsubhubbub_Publisher
Add a URL to a topic (Atom or RSS feed) which has been updated
Name | Type | Description |
---|---|---|
$url | string |
Type | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Publisher |
addUpdatedTopicUrls(array $urls) : \Zend_Feed_Pubsubhubbub_Publisher
Add an array of Topic URLs which have been updated
Name | Type | Description |
---|---|---|
$urls | array |
Type | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Publisher |
getErrors() : array
Return an array of errors met from any failures, including keys: 'response' => the Zend_Http_Response object from the failure 'hubUrl' => the URL of the Hub Server whose notification failed
Type | Description |
---|---|
array |
getHubUrls() : array
Return an array of unique Hub Server URLs currently available
Type | Description |
---|---|
array |
getParameters() : array
Return an array of optional parameters for notification requests
Type | Description |
---|---|
array |
getUpdatedTopicUrls() : array
Return an array of unique updated topic URLs currently available
Type | Description |
---|---|
array |
isSuccess() : bool
Returns a boolean indicator of whether the notifications to Hub Servers were ALL successful. If even one failed, FALSE is returned.
Type | Description |
---|---|
bool |
notifyAll() : void
Notifies all Hub Server URLs of changes
Exception | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Exception | Thrown if no hubs attached |
notifyHub(string $url) : void
Notifies a single Hub Server URL of changes
Name | Type | Description |
---|---|---|
$url | string | The Hub Server's URL |
Exception | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Exception | Thrown on failure |
removeHubUrl(string $url) : \Zend_Feed_Pubsubhubbub_Publisher
Remove a Hub Server URL
Name | Type | Description |
---|---|---|
$url | string |
Type | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Publisher |
removeParameter(string $name) : \Zend_Feed_Pubsubhubbub_Publisher
Remove an optional parameter for the notification requests
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Publisher |
removeUpdatedTopicUrl(string $url) : \Zend_Feed_Pubsubhubbub_Publisher
Remove an updated topic URL
Name | Type | Description |
---|---|---|
$url | string |
Type | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Publisher |
setConfig( $config) : \Zend_Feed_Pubsubhubbub_Publisher
Process any injected configuration options
Name | Type | Description |
---|---|---|
$config |
Type | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Publisher |
setParameter(string $name, string | null $value = null) : \Zend_Feed_Pubsubhubbub_Publisher
Add an optional parameter to the update notification requests
Name | Type | Description |
---|---|---|
$name | string | |
$value | string | null |
Type | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Publisher |
setParameters(array $parameters) : \Zend_Feed_Pubsubhubbub_Publisher
Add an optional parameter to the update notification requests
Name | Type | Description |
---|---|---|
$parameters | array |
Type | Description |
---|---|
\Zend_Feed_Pubsubhubbub_Publisher |