2 require_once(dirname(__FILE__) .
'/../Exception/class.arException.php');
28 if (!isset(self::$cache[$class])) {
31 if (!isset(self::$cache[$class][
$id]) || !self::$cache[$class][$id] instanceof
ActiveRecord) {
35 return in_array($id, array_keys(self::$cache[$class]));
44 if (!isset($object->is_new)) {
52 foreach (self::$cache as $class => $objects) {
68 public static function get($class,
$id)
70 if (!self::isCached($class,
$id)) {
74 return self::$cache[$class][
$id];
90 public static function flush($class_name)
93 $class_name = get_class($class_name);
95 unset(self::$cache[$class_name]);
const GET_UNCACHED_OBJECT
if(!array_key_exists('StateId', $_REQUEST)) $id
static purge(ActiveRecord $object)
static store(ActiveRecord $object)
Create styles array
The data for the language used.
static flush($class_name)
static isCached($class, $id)