ILIAS
Release_4_0_x_branch Revision 61816
|
Handles external Feeds via Magpie libaray. More...
Public Member Functions | |
ilExternalFeed () | |
Constructor. | |
setUrl ($a_url) | |
Set Url. | |
getUrl () | |
Get Url. | |
setError ($a_error) | |
Set Error. | |
getError () | |
Get Error. | |
fetch () | |
Fetch the feed. | |
checkCacheHit () | |
Check cache hit. | |
getChannelTitle () | |
Get Channel. | |
getChannelDescription () | |
Get Description. | |
getItems () | |
Get Items. | |
_getRSSLocation ($html, $location) | |
This one is by Keith Devens , see http://keithdevens.com/weblog/archive/2002/Jun/03/RSSAuto-DiscoveryPHP. |
Static Public Member Functions | |
static | _createCacheDirectory () |
Create magpie cache directorry (if not existing) | |
static | _checkUrl ($a_url) |
Check Url. | |
static | _determineFeedUrl ($a_url) |
Determine Feed Url. |
Protected Attributes | |
$items = array() |
Handles external Feeds via Magpie libaray.
Definition at line 40 of file class.ilExternalFeed.php.
|
static |
Check Url.
string | URL |
Definition at line 114 of file class.ilExternalFeed.php.
References $error, $feed_set, and _createCacheDirectory().
Referenced by ilFeedUrlInputGUI\checkInput().
|
static |
Create magpie cache directorry (if not existing)
Definition at line 100 of file class.ilExternalFeed.php.
References ilUtil\getWebspaceDir(), and ilUtil\makeDir().
Referenced by _checkUrl(), checkCacheHit(), and ilExternalFeed().
|
static |
Determine Feed Url.
$a_url | URL that |
Definition at line 236 of file class.ilExternalFeed.php.
References $feed_set, $res, and _getRSSLocation().
Referenced by ilFeedUrlInputGUI\checkInput().
ilExternalFeed::_getRSSLocation | ( | $html, | |
$location | |||
) |
This one is by Keith Devens , see http://keithdevens.com/weblog/archive/2002/Jun/03/RSSAuto-DiscoveryPHP.
Definition at line 266 of file class.ilExternalFeed.php.
Referenced by _determineFeedUrl().
ilExternalFeed::checkCacheHit | ( | ) |
Check cache hit.
Definition at line 180 of file class.ilExternalFeed.php.
References $cache, _createCacheDirectory(), getUrl(), MAGPIE_CACHE_AGE, and MAGPIE_CACHE_DIR.
ilExternalFeed::fetch | ( | ) |
Fetch the feed.
Definition at line 145 of file class.ilExternalFeed.php.
References $error, getUrl(), and setError().
ilExternalFeed::getChannelDescription | ( | ) |
Get Description.
Definition at line 218 of file class.ilExternalFeed.php.
ilExternalFeed::getChannelTitle | ( | ) |
Get Channel.
Definition at line 210 of file class.ilExternalFeed.php.
ilExternalFeed::getError | ( | ) |
Get Error.
Definition at line 92 of file class.ilExternalFeed.php.
References $error.
ilExternalFeed::getItems | ( | ) |
ilExternalFeed::getUrl | ( | ) |
Get Url.
Definition at line 72 of file class.ilExternalFeed.php.
Referenced by checkCacheHit(), and fetch().
ilExternalFeed::ilExternalFeed | ( | ) |
Constructor.
Definition at line 47 of file class.ilExternalFeed.php.
References $feed_set, and _createCacheDirectory().
ilExternalFeed::setError | ( | $a_error | ) |
Set Error.
string | $a_error | Error |
Definition at line 82 of file class.ilExternalFeed.php.
Referenced by fetch().
ilExternalFeed::setUrl | ( | $a_url | ) |
Set Url.
string | $a_url | Url |
Definition at line 62 of file class.ilExternalFeed.php.
|
protected |
Definition at line 42 of file class.ilExternalFeed.php.
Referenced by getItems().