ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
arCalledClassCache Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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 = []
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 24 of file class.arCalledClassCache.php.

Member Function Documentation

◆ get()

static arCalledClassCache::get ( string  $class_name)
static

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

Referenced by ActiveRecord\getCalledClass().

38  : ActiveRecord
39  {
40  if (!self::isCached($class_name)) {
41  self::store($class_name);
42  }
43 
44  return self::$cache[$class_name];
45  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ isCached()

static arCalledClassCache::isCached ( string  $class_name)
static

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

28  : bool
29  {
30  return array_key_exists($class_name, self::$cache);
31  }

◆ purge()

static arCalledClassCache::purge ( string  $class_name)
static

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

47  : void
48  {
49  unset(self::$cache[$class_name]);
50  }

◆ store()

static arCalledClassCache::store ( string  $class_name)
static

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

References null.

33  : void
34  {
35  self::$cache[$class_name] = arFactory::getInstance($class_name, null);
36  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

Field Documentation

◆ $cache

array arCalledClassCache::$cache = []
staticprotected

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


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