ILIAS  release_8 Revision v8.24
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.

36 {
37 if (!self::isCached($class_name)) {
38 self::store($class_name);
39 }
40
41 return self::$cache[$class_name];
42 }
Class ActiveRecord.
static store(string $class_name)

References store().

Referenced by ActiveRecord\getCalledClass().

+ Here is the call graph for this function:
+ 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 }

Referenced by get().

+ Here is the caller graph for this function:

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: