|
string | $cache_filename = '%feed.cache' |
|
News class from rss feed for galette
- Author
- Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be
◆ __construct()
Galette\IO\News::__construct |
( |
string |
$url, |
|
|
bool |
$nocache = false |
|
) |
| |
Default constructor
- Parameters
-
string | $url | Feed URL |
boolean | $nocache | Do not try to cache |
◆ allowURLFOpen()
Galette\IO\News::allowURLFOpen |
( |
| ) |
|
|
protected |
Check if allow_url_fopen is enabled
- Returns
- boolean
◆ cacheLoaded()
Galette\IO\News::cacheLoaded |
( |
mixed |
$contents | ) |
|
|
protected |
Called once cache has been loaded.
- Parameters
-
mixed | $contents | Content from cache |
- Returns
- bool
◆ getCacheFilename()
Galette\IO\News::getCacheFilename |
( |
| ) |
|
|
protected |
Complete path to cache file
- Returns
- string
◆ getDataTocache()
Galette\IO\News::getDataTocache |
( |
| ) |
|
|
protected |
Get data to cache
- Returns
- string
◆ getFeedURL()
Galette\IO\News::getFeedURL |
( |
string |
$url | ) |
|
Get feed url, handle Galette website to check available langs
- Parameters
-
- Returns
- string
◆ getPosts()
Galette\IO\News::getPosts |
( |
| ) |
|
Get posts
- Returns
- array<int, array<string, string>>
◆ prepareForCache()
Galette\IO\News::prepareForCache |
( |
| ) |
|
|
protected |
Ensure data to cache are present
- Returns
- void
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/IO/News.php