/**
  * Reset all global caches associated with DataObject.
  */
 public static function reset()
 {
     self::clear_classname_spec_cache();
     DataObject::$cache_has_own_table = array();
     DataObject::$_cache_db = array();
     DataObject::$_cache_get_one = array();
     DataObject::$_cache_composite_fields = array();
     DataObject::$_cache_custom_database_fields = array();
     DataObject::$_cache_get_class_ancestry = array();
     DataObject::$_cache_field_labels = array();
 }
Example #2
0
 /**
  * Reset all global caches associated with DataObject.
  */
 static function reset()
 {
     DataObject::$cache_has_own_table = array();
     DataObject::$cache_has_own_table_field = array();
     DataObject::$_cache_get_one = array();
     DataObject::$_cache_composite_fields = array();
     DataObject::$_cache_get_class_ancestry = array();
     DataObject::$_cache_field_labels = array();
 }
 /**
  * Reset all global caches associated with DataObject.
  */
 public static function reset()
 {
     DBClassName::clear_classname_cache();
     self::$_cache_has_own_table = array();
     self::$_cache_get_one = array();
     self::$_cache_composite_fields = array();
     self::$_cache_database_fields = array();
     self::$_cache_get_class_ancestry = array();
     self::$_cache_field_labels = array();
 }