ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 23 of file class.ilExternalFeed.php.
ilExternalFeed::__construct | ( | ) |
Constructor.
Definition at line 30 of file class.ilExternalFeed.php.
References _createCacheDirectory(), and ilProxySettings\_getInstance().
|
static |
Check Url.
string | URL |
Definition at line 101 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 88 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 215 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 246 of file class.ilExternalFeed.php.
References $attributes, $html, $links, $location, $n, and Sabre\Event\on().
Referenced by _determineFeedUrl().
ilExternalFeed::checkCacheHit | ( | ) |
Check cache hit.
Definition at line 160 of file class.ilExternalFeed.php.
References _createCacheDirectory(), getUrl(), MAGPIE_CACHE_AGE, MAGPIE_CACHE_DIR, and MAGPIE_OUTPUT_ENCODING.
ilExternalFeed::fetch | ( | ) |
Fetch the feed.
Definition at line 132 of file class.ilExternalFeed.php.
References getUrl(), and setError().
ilExternalFeed::getChannelDescription | ( | ) |
Get Description.
Definition at line 197 of file class.ilExternalFeed.php.
ilExternalFeed::getChannelTitle | ( | ) |
Get Channel.
Definition at line 189 of file class.ilExternalFeed.php.
ilExternalFeed::getError | ( | ) |
ilExternalFeed::getItems | ( | ) |
ilExternalFeed::getUrl | ( | ) |
Get Url.
Definition at line 60 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 70 of file class.ilExternalFeed.php.
Referenced by fetch().
ilExternalFeed::setUrl | ( | $a_url | ) |
|
protected |
Definition at line 25 of file class.ilExternalFeed.php.
Referenced by getItems().