Overview

Packages

  • None
  • SimplePie

Classes

  • SimplePie
  • SimplePie_Author
  • SimplePie_Autoloader
  • SimplePie_Cache
  • SimplePie_Cache_DB
  • SimplePie_Cache_File
  • SimplePie_Cache_Memcache
  • SimplePie_Cache_MySQL
  • SimplePie_Caption
  • SimplePie_Category
  • SimplePie_Content_Type_Sniffer
  • SimplePie_Copyright
  • SimplePie_Core
  • SimplePie_Credit
  • SimplePie_Decode_HTML_Entities
  • SimplePie_Enclosure
  • SimplePie_File
  • SimplePie_gzdecode
  • SimplePie_HTTP_Parser
  • SimplePie_IRI
  • SimplePie_Item
  • SimplePie_Locator
  • SimplePie_Misc
  • SimplePie_Net_IPv6
  • SimplePie_Parse_Date
  • SimplePie_Parser
  • SimplePie_Rating
  • SimplePie_Registry
  • SimplePie_Restriction
  • SimplePie_Sanitize
  • SimplePie_Source
  • SimplePie_XML_Declaration_Parser

Interfaces

  • SimplePie_Cache_Base
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Interface SimplePie_Cache_Base

Base for cache objects

Classes to be used with SimplePie_Cache::register() are expected to implement this interface.

Direct known implementers

SimplePie_Cache_DB, SimplePie_Cache_File, SimplePie_Cache_Memcache

Indirect known implementers

SimplePie_Cache_MySQL
Package: SimplePie
Located at SimplePie/Cache/Base.php
Methods summary
public
# __construct( string $location, string $name, string $type )

Create a new cache object

Create a new cache object

Parameters

$location
string
Location string (from SimplePie::$cache_location)
$name
string
Unique ID for the cache
$type
string
Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
public boolean
# save( array|SimplePie $data )

Save data to the cache

Save data to the cache

Parameters

$data
array|SimplePie
Data to store in the cache. If passed a SimplePie object, only cache the $data property

Returns

boolean
Successfulness
public array
# load( )

Retrieve the data saved to the cache

Retrieve the data saved to the cache

Returns

array
Data for SimplePie::$data
public integer
# mtime( )

Retrieve the last modified time for the cache

Retrieve the last modified time for the cache

Returns

integer
Timestamp
public boolean
# touch( )

Set the last modified time to the current time

Set the last modified time to the current time

Returns

boolean
Success status
public boolean
# unlink( )

Remove the cache

Remove the cache

Returns

boolean
Success status
Constants summary
string TYPE_FEED 'spc'
#

Feed cache type

Feed cache type

string TYPE_IMAGE 'spi'
#

Image cache type

Image cache type

SimplePie Documentation API documentation generated by ApiGen 2.4.0