36         if (!isset(self::$cache[$class])) {
    39         if (!isset(self::$cache[$class][
$id])) {
    42         if (!self::$cache[$class][$id] instanceof 
ActiveRecord) {
    46         return array_key_exists($id, self::$cache[$class]);
    51         if (!isset($activeRecord->is_new)) {
    58         foreach (self::$cache as $class => $objects) {
    61             echo is_countable($objects) ? count($objects) : 0;
    74         if (!self::isCached($class, 
$id)) {
    78         return self::$cache[$class][
$id];
    89     public static function flush($class_name): void
    94             $class_name = $class_name::class;
    96         unset(self::$cache[$class_name]);
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
const GET_UNCACHED_OBJECT
 
static store(ActiveRecord $activeRecord)
 
static flush($class_name)
 
static isCached($class, $id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
static purge(ActiveRecord $activeRecord)