Beispiel #1
0
 /**
  * Clear the cache of the models. You should do this only when you dynamically change models
  * @param  string $name optionally clear only one model
  */
 public static function clear_cache($name = NULL)
 {
     if ($name !== NULL) {
         unset(Jam::$_models[$name]);
     } else {
         Jam::$_models = array();
     }
 }