\Horde_Autoloader_Cache

Decorator for Horde_Autoloader that implements caching of class-file-maps.

Summary

Methods
Properties
Constants
__construct()
shutdown()
loadClass()
mapToPath()
prune()
No public properties found
APC
XCACHE
EACCELERATOR
TEMPFILE
PREFIX
KEYLIST
_getKeylist()
_saveKeylist()
$_cache
$_cachekey
$_changed
$_newkey
$_storage
N/A
No private methods found
No private properties found
N/A

Constants

APC

APC

XCACHE

XCACHE

EACCELERATOR

EACCELERATOR

TEMPFILE

TEMPFILE

PREFIX

PREFIX

KEYLIST

KEYLIST

Properties

$_cache

$_cache : array

Map of all classes already looked up.

Type

array

$_cachekey

$_cachekey : string

Cache key name.

Type

string

$_changed

$_changed : boolean

Has the cache changed since the last save?

Type

boolean

$_newkey

$_newkey : boolean

Is this a new key?

Type

boolean

$_storage

$_storage : 

Type

Methods

__construct()

__construct() 

Constructor.

shutdown()

shutdown() 

Shutdown method.

Attempts to save the class map to the cache.

loadClass()

loadClass(  $className) 

Parameters

$className

mapToPath()

mapToPath(string  $className) : string

Search registered mappers in LIFO order.

Parameters

string $className

Classname.

Returns

string —

Path.

prune()

prune() : boolean

Prunes the autoloader cache.

Returns

boolean —

True if pruning succeeded.

_getKeylist()

_getKeylist() : array

Returns the keylist.

Returns

array —

Keylist.

_saveKeylist()

_saveKeylist(array  $keylist) 

Saves the keylist.

Parameters

array $keylist

Keylist to save.