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