ILIAS
Release_4_1_x_branch Revision 61804
|
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 22 of file class.ilExternalFeed.php.
|
static |
Check Url.
string | URL |
Definition at line 104 of file class.ilExternalFeed.php.
References _createCacheDirectory(), and ilProxySettings\_getInstance().
Referenced by ilFeedUrlInputGUI\checkInput().
|
static |
Create magpie cache directorry (if not existing)
Definition at line 90 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 234 of file class.ilExternalFeed.php.
References $res, ilProxySettings\_getInstance(), 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 271 of file class.ilExternalFeed.php.
Referenced by _determineFeedUrl().
ilExternalFeed::checkCacheHit | ( | ) |
Check cache hit.
Definition at line 178 of file class.ilExternalFeed.php.
References _createCacheDirectory(), getUrl(), MAGPIE_CACHE_AGE, and MAGPIE_CACHE_DIR.
ilExternalFeed::fetch | ( | ) |
Fetch the feed.
Definition at line 143 of file class.ilExternalFeed.php.
References getUrl(), and setError().
ilExternalFeed::getChannelDescription | ( | ) |
Get Description.
Definition at line 216 of file class.ilExternalFeed.php.
ilExternalFeed::getChannelTitle | ( | ) |
Get Channel.
Definition at line 208 of file class.ilExternalFeed.php.
ilExternalFeed::getError | ( | ) |
Get Error.
Definition at line 82 of file class.ilExternalFeed.php.
ilExternalFeed::getItems | ( | ) |
ilExternalFeed::getUrl | ( | ) |
Get Url.
Definition at line 62 of file class.ilExternalFeed.php.
Referenced by checkCacheHit(), and fetch().
ilExternalFeed::ilExternalFeed | ( | ) |
Constructor.
Definition at line 29 of file class.ilExternalFeed.php.
References _createCacheDirectory(), and ilProxySettings\_getInstance().
ilExternalFeed::setError | ( | $a_error | ) |
Set Error.
string | $a_error | Error |
Definition at line 72 of file class.ilExternalFeed.php.
Referenced by fetch().
ilExternalFeed::setUrl | ( | $a_url | ) |
Set Url.
string | $a_url | Url |
Definition at line 52 of file class.ilExternalFeed.php.
|
protected |
Definition at line 24 of file class.ilExternalFeed.php.
Referenced by getItems().