/** * Set the class name to use for the default registry instance. * Does not affect the currently initialized instance, it only applies * for the next time you instantiate. * * @param string $registryClassName * @return void * @throws App_Exception if the registry is initialized or if the * class name is not valid. */ public static function setClassName($registryClassName = 'Registry') { if (self::$_registry !== null) { throw new App_Exception('Registry is already initialized'); } if (!is_string($registryClassName)) { throw new App_Exception("Argument is not a class name"); } self::$_registryClassName = $registryClassName; }