/** * Clears the registry of configuration and instances. * * @return void */ public static function clear() { static::$_instances = []; }
/** * clear pool * @static */ public static function clearPool() { static::$_instances = array(); }
/** * Clears the registry of configuration and instances. * * @return void */ public static function clear() { static::$_instances = []; static::$_config = []; static::$_fallbacked = []; }
/** * Kill all database connections * * @return void */ public static function kill_all_connections() { static::$_instances = array(); }
public static function clear_instances() { static::$_instance = null; static::$_instances = array(); }
/** * Get Instances * * Gets instances that the object * is holding * * @access public * @return Spark\Object */ protected static final function _get_instances() { if (!static::$_instances) { static::$_instances = static::factory(); } return static::$_instances; }