/**
* No changes would need to be done in this method.
*/
public function autoload($class);
/**
* No changes would need to be done in this method.
*/
public function setOptions(array $options);
/**
* This method should now determine and set the namespace separator based on
* the last character in the namespace. If the last character is not a
* backslash, default the separator to an underscore.
*
* To preserve backwards compatibility, remove all trailing underscores
* and backslashes before setting the namespace.
*/
public function setNamespace($namespace);
/**
* No changes would need to be done in this method.
*/
public function getNamespace();
/**
* ADDED - Set the separator to be used for the current namespace
*
* @param string $separator
* @return Zend_Loader_Autoloader_Resource
*/
protected function _setNamespaceSeparator($separator);
/**
* ADDED - Get the separator to be used for the current namespace
*
* @return string
*/
public function getNamespaceSeparator();
/**
* No changes would need to be done in this method.
*/
public function setBasePath($path);
/**
* No changes would need to be done in this method.
*/
public function getBasePath();
/**
* This method will no longer assume underscores need to be trimmed from
* $namespace and will instead rely on the currently defined namespace
* separator. The value associated with the namespace key of each element
* in the resource types array will utilize the defined namespace separator
* as well. This change would also affect the keys of the component array.
*/
public function addResourceType($type, $path, $namespace = null);
/**
* No changes would need to be done in this method.
*/
public function addResourceTypes(array $types);
/**
* No changes would need to be done in this method.
*/
public function setResourceTypes(array $types);
/**
* No changes would need to be done in this method.
*/
public function getResourceTypes();
/**
* No changes would need to be done in this method.
*/
public function hasResourceType($type);
/**
* No changes would need to be done in this method.
*/
public function removeResourceType($type);
/**
* No changes would need to be done in this method.
*/
public function clearResourceTypes();
/**
* No changes would need to be done in this method.
*/
public function setDefaultResourceType($type);
/**
* No changes would need to be done in this method.
*/
public function getDefaultResourceType();
/**
* This method should no longer assume an underscore should be used to
* separate the resource type namespace from the provided resource name. It
* should instead use the currently defined namespace separator.
*/
public function load($resource, $type = null);
}
{code}
{code}
<?php
class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface
{
/**
* No changes would need to be done in this method.
*/
public function __construct(Array $prefixToPaths = array(), $staticRegistryName = null);
/**
* This method should only append an underscore if the last character of
* $prefix is not an underscore or backslash.
*/
protected function _formatPrefix($prefix);
/**
* No changes would need to be done in this method.
*/
public function addPrefixPath($prefix, $path);
/**
* No changes would need to be done in this method.
*/
public function getPaths($prefix = null);
/**
* No changes would need to be done in this method.
*/
public function clearPaths($prefix = null);
/**
* No changes would need to be done in this method.
*/
public function removePrefixPath($prefix, $path = null);
/**
* No changes would need to be done in this method.
*/
protected function _formatName($name);
/**
* No changes would need to be done in this method.
*/
public function isLoaded($name);
/**
* No changes would need to be done in this method.
*/
public function getClassName($name);
/**
* No changes would need to be done in this method.
*/
public function getClassPath($name);
/**
* This method will no longer assume that classes are namespaced with
* underscores. Instead, it will replace backslashes and underscores with
* DIRECTORY_SEPARATOR.
*/
public function load($name, $throwExceptions = true);
/**
* No changes would need to be done in this method.
*/
public static function setIncludeFileCache($file);
/**
* No changes would need to be done in this method.
*/
public static function getIncludeFileCache();
/**
* No changes would need to be done in this method.
*/
protected static function _appendIncFile($incFile);
}
{code}