ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Handles external Feeds via Magpie library. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
setUrl ($a_url) | |
Set Url. More... | |
getUrl () | |
Get Url. More... | |
setError ($a_error) | |
Set Error. More... | |
getError () | |
Get Error. More... | |
fetch () | |
Fetch the feed. More... | |
checkCacheHit () | |
Check cache hit. More... | |
getChannelTitle () | |
Get Channel. More... | |
getChannelDescription () | |
Get Description. More... | |
getItems () | |
Get Items. More... | |
Static Public Member Functions | |
static | _createCacheDirectory () |
Create magpie cache directorry (if not existing) More... | |
static | _checkUrl ($a_url) |
Check Url. More... | |
static | _determineFeedUrl ($a_url) |
Determine Feed Url. More... | |
static | _getRSSLocation ($html, $location) |
This one is by Keith Devens , see http://keithdevens.com/weblog/archive/2002/Jun/03/RSSAuto-DiscoveryPHP. More... | |
Protected Attributes | |
$items = array() | |
Handles external Feeds via Magpie library.
Definition at line 27 of file class.ilExternalFeed.php.
ilExternalFeed::__construct | ( | ) |
Constructor.
Definition at line 34 of file class.ilExternalFeed.php.
References _createCacheDirectory(), and ilProxySettings\_getInstance().
|
static |
Check Url.
string | URL |
Definition at line 105 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 92 of file class.ilExternalFeed.php.
References ilUtil\getDataDir(), and ilUtil\makeDir().
Referenced by __construct(), _checkUrl(), and checkCacheHit().
|
static |
Determine Feed Url.
$a_url | URL that |
Definition at line 219 of file class.ilExternalFeed.php.
References $res, ilProxySettings\_getInstance(), and _getRSSLocation().
Referenced by ilFeedUrlInputGUI\checkInput().
|
static |
This one is by Keith Devens , see http://keithdevens.com/weblog/archive/2002/Jun/03/RSSAuto-DiscoveryPHP.
Definition at line 250 of file class.ilExternalFeed.php.
References $attributes, $location, and $n.
Referenced by _determineFeedUrl().
ilExternalFeed::checkCacheHit | ( | ) |
Check cache hit.
Definition at line 164 of file class.ilExternalFeed.php.
References _createCacheDirectory(), getUrl(), MAGPIE_CACHE_AGE, and MAGPIE_OUTPUT_ENCODING.
ilExternalFeed::fetch | ( | ) |
Fetch the feed.
Definition at line 136 of file class.ilExternalFeed.php.
References getUrl(), and setError().
ilExternalFeed::getChannelDescription | ( | ) |
Get Description.
Definition at line 201 of file class.ilExternalFeed.php.
ilExternalFeed::getChannelTitle | ( | ) |
Get Channel.
Definition at line 193 of file class.ilExternalFeed.php.
ilExternalFeed::getError | ( | ) |
ilExternalFeed::getItems | ( | ) |
ilExternalFeed::getUrl | ( | ) |
Get Url.
Definition at line 64 of file class.ilExternalFeed.php.
References $url.
Referenced by checkCacheHit(), and fetch().
ilExternalFeed::setError | ( | $a_error | ) |
Set Error.
string | $a_error | Error |
Definition at line 74 of file class.ilExternalFeed.php.
Referenced by fetch().
ilExternalFeed::setUrl | ( | $a_url | ) |
|
protected |
Definition at line 29 of file class.ilExternalFeed.php.
Referenced by getItems().