.

CacheHeaderManagerFactory Class Reference

Simple factory for cache header manager. More...

List of all members.

Static Public Member Functions

static  create ($stub)
  Create instance from class name stub.

Detailed Description

Simple factory for cache header manager.

Definition at line 5 of file cacheheadermanager.factory.php.


Member Function Documentation

static CacheHeaderManagerFactory::create ( stub  )  [static]

Create instance from class name stub.

Stub is class name without CacheHeaderManager, e.g. FullCache for FullCacheCacheHeaderManager

Returns:
ICacheHeaderManager

Definition at line 13 of file cacheheadermanager.factory.php.

00013                                              {
00014                 $cls = $stub  . 'CacheHeaderManager';
00015                 if (class_exists($cls)) {
00016                         return new $cls();
00017                 }
00018                 throw new Exception('Unknown cache header manager: ' . $stub);
00019         }

The documentation for this class was generated from the following file: