Modules/Groupware/Feeds/ImportHelper.php
\Conjoon_Modules_Groupware_Feeds_ImportHelper
Package: Default
Utility class for access to functionaly related to importing feed items.
- Author
- Thorsten Suckow-Homberg
Properties
Methods

getFeedMetadata(
string $uri, integer $requestTimeout
=
30, boolean $useCache
=
false, boolean $useConditionalGet
=
false
)
:
array
static
Returns the metadata for a feed.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $uri | string | |
| $requestTimeout | integer | |
| $useCache | boolean | |
| $useConditionalGet | boolean |
| Type | Description |
|---|---|
| array | An assoc array with the following key/value pairs: - link - title - description |

importFeedItems(
string $uri, integer $requestTimeout
=
30, boolean $useCache
=
false, boolean $useConditionalGet
=
false
)
:
array
static
Returns an array with the feed items as imported from the given $uri.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $uri | string | |
| $requestTimeout | integer | |
| $useCache | boolean | |
| $useConditionalGet | boolean |
| Type | Description |
|---|---|
| array | An array with Zend_Feed_Reader_Feed_Interface |

isFeedAddressValid(
string $uri
)
:
boolean
static
Checks whether a given uri points to an rss feed resource.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $uri | string |
| Type | Description |
|---|---|
| boolean | true if a rss feed was found, otherwise false. |

normalizeFeedItem(
\Zend_Feed_Reader_EntryAbstract $item
)
:
array
static
Parses all feed items for their values and returns an associative array with their normalized values, along with the accountId specified.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $item | \Zend_Feed_Reader_EntryAbstract |
| Type | Description |
|---|---|
| array |