XCacheCacheItem Class Reference
[XCache]
Cache Item for XCache. More...
Inheritance diagram for
XCacheCacheItem:
Public Member Functions |
|
| __construct ($item_data) | |
| Constructor. |
|
| get_content_compressed () | |
| Return the content gzip compressed. |
|
| get_content_plain () | |
| Return the content in plain form. |
|
| get_creationdate () | |
| Return creation date. |
|
| get_data () | |
| Return data associated with this item.
|
|
| get_expirationdate () | |
| Return expiration date. |
|
Protected Attributes |
|
| $item_data | |
Detailed Description
Cache Item for XCache.
Definition at line 8 of file cache.xcache.impl.php.
Constructor & Destructor Documentation
| XCacheCacheItem::__construct | ( | $ | item_data | ) |
Constructor.
- Parameters:
-
array $item_data
Definition at line 21 of file cache.xcache.impl.php.
00021 { 00022 $this->item_data = $item_data; 00023 }
Member Function Documentation
| XCacheCacheItem::get_content_compressed | ( | ) |
Return the content gzip compressed.
- Returns:
- string
Implements ICacheItem.
Definition at line 70 of file cache.xcache.impl.php.
| XCacheCacheItem::get_content_plain | ( | ) |
Return the content in plain form.
- Returns:
- string
Implements ICacheItem.
Definition at line 57 of file cache.xcache.impl.php.
00057 { 00058 $ret = $this->get_content_compressed(); 00059 if ($ret && function_exists('gzinflate')) { 00060 $ret = gzinflate($ret); 00061 } 00062 return $ret; 00063 }
| XCacheCacheItem::get_creationdate | ( | ) |
Return creation date.
- Returns:
- datetime
Implements ICacheItem.
Definition at line 30 of file cache.xcache.impl.php.
| XCacheCacheItem::get_data | ( | ) |
Return data associated with this item.
- Returns:
- mixed
Implements ICacheItem.
Definition at line 48 of file cache.xcache.impl.php.
| XCacheCacheItem::get_expirationdate | ( | ) |
Return expiration date.
- Returns:
- datetime
Implements ICacheItem.
Definition at line 39 of file cache.xcache.impl.php.
Member Data Documentation
XCacheCacheItem::$item_data
[protected] |
Definition at line 14 of file cache.xcache.impl.php.
The documentation for this class was generated from the following file:
- contributions/cache.xcache/cache.xcache.impl.php
