Class Cache

Description

This class acts as a basic cache. It stores data in a multi-dimensional associative array that is built at execution time to store any arbitrary data by "filing".

  • version: $Id: Cache.class.php,v 1.3 2007/09/04 20:25:54 adamfranco Exp $
  • copyright: 2004

Located in /harmoni/core/utilities/Cache.class.php (line 25)


	
			
Method Summary
Cache Cache ()
boolean contains (string $ident1, optional 1)
ref get (string $ident1, optional 1)
void store (ref $object, string $ident1, optional 2)
Methods
Constructor Cache (line 27)
Cache Cache ()
contains (line 68)

Checks to see if we have any data stored under the given identifiers.

  • access: public
boolean contains (string $ident1, optional 1)
  • string $ident1: The first identifier for the object.
  • optional 1: string $ident2,... Any number of additional identifiers.
get (line 90)

Retrieves stored data specified by the given identifiers.

  • return: mixed
  • access: public
ref get (string $ident1, optional 1)
  • string $ident1: The first identifier for the object.
  • optional 1: string $ident2,... Any number of additional identifiers.
store (line 39)

Stores an object.

  • access: public
void store (ref $object, string $ident1, optional 2)
  • string $ident1: The first identifier for the object.
  • optional 2: string $ident2,... Any number of additional identifiers.
  • ref $object: mixed $object Any variable that should be stored.

Documentation generated on Wed, 19 Sep 2007 10:21:57 -0400 by phpDocumentor 1.3.0RC3