Class arObjectCache.
More...
◆ flush()
static arObjectCache::flush |
( |
|
$class_name | ) |
|
|
static |
- Parameters
-
Definition at line 84 of file class.arObjectCache.php.
84 {
86 $class_name = get_class($class_name);
87 }
88 unset(self::$cache[$class_name]);
89 }
◆ get()
static arObjectCache::get |
( |
|
$class, |
|
|
|
$id |
|
) |
| |
|
static |
◆ isCached()
static arObjectCache::isCached |
( |
|
$class, |
|
|
|
$id |
|
) |
| |
|
static |
- Parameters
-
- Returns
- bool
Definition at line 25 of file class.arObjectCache.php.
25 {
26 if (!isset(self::$cache[$class])) {
27 return false;
28 }
29 if (!isset(self::$cache[$class][$id]) || !self::$cache[$class][$id] instanceof
ActiveRecord) {
30 return false;
31 }
32
33 return in_array($id, array_keys(self::$cache[$class]));
34 }
Referenced by ActiveRecord\buildFromArray().
◆ printStats()
static arObjectCache::printStats |
( |
| ) |
|
|
static |
Definition at line 47 of file class.arObjectCache.php.
47 {
48 foreach (self::$cache as $class => $objects) {
49 echo $class;
50 echo ": ";
51 echo count($objects);
52 echo " Objects<br>";
53 }
54 }
◆ purge()
◆ store()
◆ $cache
arObjectCache::$cache = array() |
|
staticprotected |
The documentation for this class was generated from the following file: