ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
arCalledClassCache Class Reference

Class arCalledClassCache. More...

+ Collaboration diagram for arCalledClassCache:

Static Public Member Functions

static isCached ($class_name)
static store ($class_name)
static get ($class_name)
static purge ($class_name)

Static Protected Attributes

static $cache = array()

Detailed Description

Class arCalledClassCache.

Version
2.0.7
Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 10 of file class.arCalledClassCache.php.

Member Function Documentation

static arCalledClassCache::get (   $class_name)
static
Parameters
$class_name
Returns
mixed

Definition at line 41 of file class.arCalledClassCache.php.

References store().

Referenced by ActiveRecord\getCalledClass().

{
if (!self::isCached($class_name)) {
self::store($class_name);
}
return self::$cache[$class_name];
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static arCalledClassCache::isCached (   $class_name)
static
Parameters
$class_name
Returns
bool

Definition at line 23 of file class.arCalledClassCache.php.

{
return in_array($class_name, array_keys(self::$cache));
}
static arCalledClassCache::purge (   $class_name)
static
Parameters
$class_name

Definition at line 53 of file class.arCalledClassCache.php.

{
unset(self::$cache[$class_name]);
}
static arCalledClassCache::store (   $class_name)
static
Parameters
$class_name

Definition at line 31 of file class.arCalledClassCache.php.

Referenced by get().

{
self::$cache[$class_name] = arFactory::getInstance($class_name, NULL);
}

+ Here is the caller graph for this function:

Field Documentation

arCalledClassCache::$cache = array()
staticprotected

Definition at line 15 of file class.arCalledClassCache.php.


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