Constructor & Destructor Documentation
| __construct |
( |
|
$id = null | ) |
|
Constructs an rss feed object. Omit the id to create an empty feed.
- Parameters
-
| mixed | $id | Id of the requested rss feed |
Member Function Documentation
| static checkAccess |
( |
|
$feed_id, |
|
|
|
$user_id = false |
|
) |
| |
|
static |
Checks whether the specified feed belongs to the specified user
- Parameters
-
| string | $feed_id | Id of the feed in question |
| string | $user_id | Id of the user in question, false for current user |
- Returns
- boolean Indicates whether the feed belongs to the user
Deletes the feed from the database.
- Returns
- boolean Indicates whether the feed was actually deleted
| static fetch |
( |
|
$url, |
|
|
|
$refresh = false |
|
) |
| |
|
static |
Fetches a feed from the given url using Magpie.
- Parameters
-
| string | $url | URL of the feed to fetch |
| boolean | $refresh | Indicates whether the cache should be refreshed |
- Returns
- mixed Magpie object representation of the feed or false on error
Returns the current user's limit of displayed feed items.
- Returns
- int The current user's limit of displayed feed items
| static increasePriorities |
( |
| ) |
|
|
static |
Increases the priorities of all the current user's feeds by 1.
| static load |
( |
|
$id, |
|
|
|
$return_class = false |
|
) |
| |
|
static |
Loads a single feed with the specified id if the id is passed as a string or loads a bundle of feeds if the ids are passed as an array. Feeds can be returned as associative arrays containing the feeds' data or as complete RSSFeed objects. Results are always sorted by the feeds' priorities (not applicable if a single feed is requested).
- Parameters
-
| mixed | $id | Id(s) of the feed(s) in question |
| boolean | $return_class | Indicates whether arrays or objects should be returned |
- Returns
- mixed Array of feeds or single feed resp. empty array or false if no feeds match the id(s)
| static loadByUserId |
( |
|
$user_id | ) |
|
|
static |
Loads all feeds of the requested user (sorted by priority).
- Parameters
-
| string | $user_id | Id of the user in question. |
- Returns
- array List of the user's feeds as RSSFeed objects
Moves the feed downwards in the list of the user's feeds
- Returns
- booleean Indicates whether the feed was actually moved
Moves the feed upwards in the list of the user's feeds
- Returns
- booleean Indicates whether the feed was actually moved
Renders the contents of the feed
- Parameters
-
| int | $limit | Maximum number of displayed item, -1 to display all |
- Returns
- string Rendered html output
Sets the current user's limit of displayed feed items.
- Parameters
-
| int | $limit | The current user's limit of displayed feed items (pass -1 for no limit) |
Stores feed in database.
- Returns
- boolean Indicates whether feed was actually stored
Field Documentation
| const CONFIG_KEY = 'RSS_FEED_DISPLAY_LIMIT' |
The documentation for this class was generated from the following file: