import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -17,7 +17,7 @@
* @subpackage PluginLoader
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: PluginLoader.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: PluginLoader.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Loader_PluginLoader_Interface */
@ -123,9 +123,9 @@ class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface
*/
protected function _formatPrefix($prefix)
{
if($prefix == "") {
return $prefix;
}
if($prefix == "") {
return $prefix;
}
return rtrim($prefix, '_') . '_';
}
@ -149,7 +149,12 @@ class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface
if ($this->_useStaticRegistry) {
self::$_staticPrefixToPaths[$this->_useStaticRegistry][$prefix][] = $path;
} else {
$this->_prefixToPaths[$prefix][] = $path;
if (!isset($this->_prefixToPaths[$prefix])) {
$this->_prefixToPaths[$prefix] = array();
}
if (!in_array($path, $this->_prefixToPaths[$prefix])) {
$this->_prefixToPaths[$prefix][] = $path;
}
}
return $this;
}
@ -293,7 +298,7 @@ class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface
public function getClassName($name)
{
$name = $this->_formatName($name);
if ($this->_useStaticRegistry
if ($this->_useStaticRegistry
&& isset(self::$_staticLoadedPlugins[$this->_useStaticRegistry][$name])
) {
return self::$_staticLoadedPlugins[$this->_useStaticRegistry][$name];
@ -306,14 +311,14 @@ class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface
/**
* Get path to plugin class
*
* @param mixed $name
*
* @param mixed $name
* @return string|false False if not found
*/
public function getClassPath($name)
{
$name = $this->_formatName($name);
if ($this->_useStaticRegistry
if ($this->_useStaticRegistry
&& !empty(self::$_staticLoadedPluginPaths[$this->_useStaticRegistry][$name])
) {
return self::$_staticLoadedPluginPaths[$this->_useStaticRegistry][$name];
@ -340,9 +345,9 @@ class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface
* Load a plugin via the name provided
*
* @param string $name
* @param bool $throwExceptions Whether or not to throw exceptions if the
* @param bool $throwExceptions Whether or not to throw exceptions if the
* class is not resolved
* @return string|false Class name of loaded class; false if $throwExceptions
* @return string|false Class name of loaded class; false if $throwExceptions
* if false and no class found
* @throws Zend_Loader_Exception if class not found
*/
@ -414,10 +419,10 @@ class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface
/**
* Set path to class file cache
*
* Specify a path to a file that will add include_once statements for each
* Specify a path to a file that will add include_once statements for each
* plugin class loaded. This is an opt-in feature for performance purposes.
*
* @param string $file
*
* @param string $file
* @return void
* @throws Zend_Loader_PluginLoader_Exception if file is not writeable or path does not exist
*/
@ -446,7 +451,7 @@ class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface
/**
* Retrieve class file cache path
*
*
* @return string|null
*/
public static function getIncludeFileCache()
@ -456,8 +461,8 @@ class Zend_Loader_PluginLoader implements Zend_Loader_PluginLoader_Interface
/**
* Append an include_once statement to the class file cache
*
* @param string $incFile
*
* @param string $incFile
* @return void
*/
protected static function _appendIncFile($incFile)