.

XCacheCacheItem Class Reference
[XCache]

Cache Item for XCache. More...

Inheritance diagram for XCacheCacheItem:
ICacheItem

List of all members.

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.

Author:
Gerd Riesselmann

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.

00070                                                  {
00071                 return $this->item_data['content'];
00072         }       
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.

00030                                            {
00031                 return $this->item_data['creationdate'];
00032         }       
XCacheCacheItem::get_data (  ) 

Return data associated with this item.

Returns:
mixed

Implements ICacheItem.

Definition at line 48 of file cache.xcache.impl.php.

00048                                    {
00049                 return $this->item_data['data'];
00050         }
XCacheCacheItem::get_expirationdate (  ) 

Return expiration date.

Returns:
datetime

Implements ICacheItem.

Definition at line 39 of file cache.xcache.impl.php.

00039                                              {
00040                 return $this->item_data['expirationdate'];
00041         }

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: