Class arObjectCache.
More...
Static Protected Attributes |
static | $cache = array() |
Detailed Description
Member Function Documentation
static arObjectCache::flush |
( |
|
$class_name | ) |
|
|
static |
- Parameters
-
Definition at line 84 of file class.arObjectCache.php.
{
$class_name = get_class($class_name);
}
unset(self::$cache[$class_name]);
}
static arObjectCache::get |
( |
|
$class, |
|
|
|
$id |
|
) |
| |
|
static |
static arObjectCache::isCached |
( |
|
$class, |
|
|
|
$id |
|
) |
| |
|
static |
- Parameters
-
- Returns
- bool
Definition at line 25 of file class.arObjectCache.php.
Referenced by ActiveRecord\buildFromArray().
{
if (!isset(self::$cache[$class])) {
return false;
}
if (!isset(self::$cache[$class][$id]) || !self::$cache[$class][$id] instanceof
ActiveRecord) {
return false;
}
return in_array($id, array_keys(self::$cache[$class]));
}
static arObjectCache::printStats |
( |
| ) |
|
|
static |
Definition at line 47 of file class.arObjectCache.php.
{
foreach (self::$cache as $class => $objects) {
echo $class;
echo ": ";
echo count($objects);
echo " Objects<br>";
}
}
Field Documentation
arObjectCache::$cache = array() |
|
staticprotected |
The documentation for this class was generated from the following file: