ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
arCalledClassCache Class Reference

Class arCalledClassCache. More...

+ Collaboration diagram for arCalledClassCache:

Static Public Member Functions

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

Static Protected Attributes

static array $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 21 of file class.arCalledClassCache.php.

Member Function Documentation

◆ get()

static arCalledClassCache::get ( string  $class_name)
static

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

Referenced by ActiveRecord\getCalledClass().

35  : ActiveRecord
36  {
37  if (!self::isCached($class_name)) {
38  self::store($class_name);
39  }
40 
41  return self::$cache[$class_name];
42  }
+ Here is the caller graph for this function:

◆ isCached()

static arCalledClassCache::isCached ( string  $class_name)
static

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

25  : bool
26  {
27  return array_key_exists($class_name, self::$cache);
28  }

◆ purge()

static arCalledClassCache::purge ( string  $class_name)
static

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

44  : void
45  {
46  unset(self::$cache[$class_name]);
47  }

◆ store()

static arCalledClassCache::store ( string  $class_name)
static

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

30  : void
31  {
32  self::$cache[$class_name] = arFactory::getInstance($class_name, null);
33  }

Field Documentation

◆ $cache

array arCalledClassCache::$cache = array()
staticprotected

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


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