Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
array $_errors = 'array'An array of any errors including keys for 'response', 'hubUrl'.
The response is the actual Zend_Http_Response object.
Detailsarray $_hubUrls = 'array'An array of URLs for all Hub Servers used by the Publisher, and to which all topic update notifications will be sent.
Detailsarray $_parameters = 'array'An array of topic (Atom or RSS feed) URLs which have been updated and whose updated status will be notified to all Hub Servers.
Detailsarray $_updatedTopicUrls = 'array'An array of topic (Atom or RSS feed) URLs which have been updated and whose updated status will be notified to all Hub Servers.
Details__construct(
$config
=
null
)
:
voidConstructor; accepts an array or Zend_Config instance to preset options for the Publisher without calling all supported setter methods in turn.
Details_getHttpClient(
)
:
Zend_Http_ClientGet a basic prepared HTTP client for use
DetailsaddHubUrl(
string $url
)
:
Zend_Feed_Pubsubhubbub_PublisherAdd a Hub Server URL supported by Publisher
DetailsaddHubUrls(
array $urls
)
:
Zend_Feed_Pubsubhubbub_PublisherAdd an array of Hub Server URLs supported by Publisher
DetailsaddUpdatedTopicUrl(
string $url
)
:
Zend_Feed_Pubsubhubbub_PublisherAdd a URL to a topic (Atom or RSS feed) which has been updated
DetailsaddUpdatedTopicUrls(
array $urls
)
:
Zend_Feed_Pubsubhubbub_PublisherAdd an array of Topic URLs which have been updated
DetailsgetErrors(
)
:
arrayReturn 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
DetailsgetHubUrls(
)
:
arrayReturn an array of unique Hub Server URLs currently available
DetailsgetParameters(
)
:
arrayReturn an array of optional parameters for notification requests
DetailsgetUpdatedTopicUrls(
)
:
arrayReturn an array of unique updated topic URLs currently available
DetailsisSuccess(
)
:
boolReturns a boolean indicator of whether the notifications to Hub Servers were ALL successful. If even one failed, FALSE is returned.
DetailsnotifyAll(
)
:
voidNotifies all Hub Server URLs of changes
If a Hub notification fails, certain data will be retained in an an array retrieved using getErrors(), if a failure occurs for any Hubs the isSuccess() check will return FALSE. This method is designed not to needlessly fail with an Exception/Error unless from Zend_Http_Client.
DetailsnotifyHub(
string $url
)
:
voidNotifies a single Hub Server URL of changes
DetailsremoveHubUrl(
string $url
)
:
Zend_Feed_Pubsubhubbub_PublisherRemove a Hub Server URL
DetailsremoveParameter(
string $name
)
:
Zend_Feed_Pubsubhubbub_PublisherRemove an optional parameter for the notification requests
DetailsremoveUpdatedTopicUrl(
string $url
)
:
Zend_Feed_Pubsubhubbub_PublisherRemove an updated topic URL
DetailssetConfig(
$config
)
:
Zend_Feed_Pubsubhubbub_PublisherProcess any injected configuration options
DetailssetParameter(
string $name, string|null $value
=
null
)
:
Zend_Feed_Pubsubhubbub_PublisherAdd an optional parameter to the update notification requests
DetailssetParameters(
array $parameters
)
:
Zend_Feed_Pubsubhubbub_PublisherAdd an optional parameter to the update notification requests
Details