ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.arCalledClassCache.php
Go to the documentation of this file.
1 <?php
2 
11 {
12 
16  protected static $cache = array();
17 
18 
24  public static function isCached($class_name)
25  {
26  return in_array($class_name, array_keys(self::$cache));
27  }
28 
29 
33  public static function store($class_name)
34  {
35  self::$cache[$class_name] = arFactory::getInstance($class_name, null);
36  }
37 
38 
44  public static function get($class_name)
45  {
46  if (!self::isCached($class_name)) {
47  self::store($class_name);
48  }
49 
50  return self::$cache[$class_name];
51  }
52 
53 
57  public static function purge($class_name)
58  {
59  unset(self::$cache[$class_name]);
60  }
61 }
static isCached($class_name)
Class arCalledClassCache.
Create styles array
The data for the language used.
static store($class_name)
static purge($class_name)