FeedCachable
class FeedCachable extends Feed implements CachableInterface
Properties
$id | from Feed |
Methods
No description
No description
No description
No description
No description
Get the key of the current cached item
Test if an item is already cached and if its cache is still valid
Get a cache content for an item
Set a cache content for an item
Clear a cache content for an item
Details
in SimpleObject at line 46
setProtocol($protocol)
in SimpleObject at line 57
getProtocol()
in SimpleObject at line 62
setVersion($version)
in SimpleObject at line 68
getVersion()
in SimpleObject at line 73
setNamespaces(array $namespaces)
in SimpleObject at line 79
getNamespaces()
in SimpleObject at line 84
getNamespace($index)
in SimpleObject at line 89
hasNamespace($index)
in XMLObject at line 43
setXml(SimpleXMLElement $xml)
in XMLObject at line 49
getXml()
in XMLObject at line 54
exists()
in XMLDataObject at line 47
addData($name, $value)
in XMLDataObject at line 56
setData($data)
in XMLDataObject at line 70
getData($limit = null, $offset)
in XMLDataObject at line 88
get($entry, $default = null)
in XMLDataObject at line 96
set($entry, $value)
in XMLDataObject at line 101
__get($entry)
in XMLDataObject at line 106
__set($entry, $value)
at line 39
__construct($feed_url, $feed_name = null)
in Feed at line 58
getRawXml()
in Feed at line 63
getChannel()
in Feed at line 68
hasItems($limit = null, $offset)
in Feed at line 73
getItemsCount()
in Feed at line 78
getItems($limit = null, $offset)
in Feed at line 83
getItemById($id)
in Feed at line 93
getItemsCategories($limit = null, $offset)
in Feed at line 111
getItem($index)
in Feed at line 116
getItemsCollection()
in Feed at line 121
getItemsCollectionByCategorie($category, $limit = null, $offset)
in Feed at line 140
setFeedUrl($feed_url)
in Feed at line 147
getFeedUrl()
in Feed at line 152
setFeedName($feed_name)
in Feed at line 158
getFeedName()
in Feed at line 167
__toString()
in Feed at line 176
getTagItem($tag_name)
at line 45
read()
in Feed at line 238
parse()
at line 63
setCacheKey($str)
at line 69
getCacheKey()
at line 78
getCacheDirname()
at line 94
string
buildCacheKey()
Get the key of the current cached item
This should transform an item identifier (such as a title) into a uniq key.
at line 113
bool
isCached()
Test if an item is already cached and if its cache is still valid
This may check if a cache exists for the item and if it seems always valid ; validity
may be tested for a static duration time (a max_cache_time
) and could be checked
comparing the creation time of the cache entry and the last modification time of the
source if it is possible.
at line 130
mixed
getCache()
Get a cache content for an item
This must return the exact same content passed at the setCache()
method.
at line 151
bool
setCache(mixed $content)
Set a cache content for an item
This must store the content in association with the item key ; the method could return a boolean indicates if the caching process succeeded.
at line 168
bool
invalidateCache()
Clear a cache content for an item
This must clear the cached content associated with the item key ; the method could return a boolean indicates if the deletion process succeeded.