|
|
@@ -25,7 +25,7 @@ require_once 'Zend/Loader.php';
|
|
|
|
|
|
/**
|
|
|
* Autoloader stack and namespace autoloader
|
|
|
- *
|
|
|
+ *
|
|
|
* @uses Zend_Loader_Autoloader
|
|
|
* @package Zend_Loader
|
|
|
* @subpackage Autoloader
|
|
|
@@ -79,7 +79,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Retrieve singleton instance
|
|
|
- *
|
|
|
+ *
|
|
|
* @return Zend_Loader_Autoloader
|
|
|
*/
|
|
|
public static function getInstance()
|
|
|
@@ -92,7 +92,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Reset the singleton instance
|
|
|
- *
|
|
|
+ *
|
|
|
* @return void
|
|
|
*/
|
|
|
public static function resetInstance()
|
|
|
@@ -102,8 +102,8 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Autoload a class
|
|
|
- *
|
|
|
- * @param string $class
|
|
|
+ *
|
|
|
+ * @param string $class
|
|
|
* @return bool
|
|
|
*/
|
|
|
public static function autoload($class)
|
|
|
@@ -133,7 +133,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Set the default autoloader implementation
|
|
|
- *
|
|
|
+ *
|
|
|
* @param string|array $callback PHP callback
|
|
|
* @return void
|
|
|
*/
|
|
|
@@ -149,7 +149,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Retrieve the default autoloader callback
|
|
|
- *
|
|
|
+ *
|
|
|
* @return string|array PHP Callback
|
|
|
*/
|
|
|
public function getDefaultAutoloader()
|
|
|
@@ -159,7 +159,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Set several autoloader callbacks at once
|
|
|
- *
|
|
|
+ *
|
|
|
* @param array $autoloaders Array of PHP callbacks (or Zend_Loader_Autoloader_Interface implementations) to act as autoloaders
|
|
|
* @return Zend_Loader_Autoloader
|
|
|
*/
|
|
|
@@ -171,7 +171,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Get attached autoloader implementations
|
|
|
- *
|
|
|
+ *
|
|
|
* @return array
|
|
|
*/
|
|
|
public function getAutoloaders()
|
|
|
@@ -181,7 +181,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Return all autoloaders for a given namespace
|
|
|
- *
|
|
|
+ *
|
|
|
* @param string $namespace
|
|
|
* @return array
|
|
|
*/
|
|
|
@@ -196,8 +196,8 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Register a namespace to autoload
|
|
|
- *
|
|
|
- * @param string $namespace
|
|
|
+ *
|
|
|
+ * @param string $namespace
|
|
|
* @return Zend_Loader_Autoloader
|
|
|
*/
|
|
|
public function registerNamespace($namespace)
|
|
|
@@ -218,8 +218,8 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Unload a registered autoload namespace
|
|
|
- *
|
|
|
- * @param string $namespace
|
|
|
+ *
|
|
|
+ * @param string $namespace
|
|
|
* @return Zend_Loader_Autoloader
|
|
|
*/
|
|
|
public function unregisterNamespace($namespace)
|
|
|
@@ -240,7 +240,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Get a list of registered autoload namespaces
|
|
|
- *
|
|
|
+ *
|
|
|
* @return array
|
|
|
*/
|
|
|
public function getRegisteredNamespaces()
|
|
|
@@ -250,8 +250,8 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Get or set the value of the "suppress not found warnings" flag
|
|
|
- *
|
|
|
- * @param null|bool $flag
|
|
|
+ *
|
|
|
+ * @param null|bool $flag
|
|
|
* @return bool|Zend_Loader_Autoloader Returns boolean if no argument is passed, object instance otherwise
|
|
|
*/
|
|
|
public function suppressNotFoundWarnings($flag = null)
|
|
|
@@ -265,8 +265,8 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Indicate whether or not this autoloader should be a fallback autoloader
|
|
|
- *
|
|
|
- * @param bool $flag
|
|
|
+ *
|
|
|
+ * @param bool $flag
|
|
|
* @return Zend_Loader_Autoloader
|
|
|
*/
|
|
|
public function setFallbackAutoloader($flag)
|
|
|
@@ -277,7 +277,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Is this instance acting as a fallback autoloader?
|
|
|
- *
|
|
|
+ *
|
|
|
* @return bool
|
|
|
*/
|
|
|
public function isFallbackAutoloader()
|
|
|
@@ -288,11 +288,11 @@ class Zend_Loader_Autoloader
|
|
|
/**
|
|
|
* Get autoloaders to use when matching class
|
|
|
*
|
|
|
- * Determines if the class matches a registered namespace, and, if so,
|
|
|
- * returns only the autoloaders for that namespace. Otherwise, it returns
|
|
|
+ * Determines if the class matches a registered namespace, and, if so,
|
|
|
+ * returns only the autoloaders for that namespace. Otherwise, it returns
|
|
|
* all non-namespaced autoloaders.
|
|
|
*
|
|
|
- * @param string $class
|
|
|
+ * @param string $class
|
|
|
* @return array Array of autoloaders to use
|
|
|
*/
|
|
|
public function getClassAutoloaders($class)
|
|
|
@@ -334,7 +334,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Add an autoloader to the beginning of the stack
|
|
|
- *
|
|
|
+ *
|
|
|
* @param object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation
|
|
|
* @param string|array $namespace Specific namespace(s) under which to register callback
|
|
|
* @return Zend_Loader_Autoloader
|
|
|
@@ -357,7 +357,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Append an autoloader to the autoloader stack
|
|
|
- *
|
|
|
+ *
|
|
|
* @param object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation
|
|
|
* @param string|array $namespace Specific namespace(s) under which to register callback
|
|
|
* @return Zend_Loader_Autoloader
|
|
|
@@ -380,7 +380,7 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Remove an autoloader from the autoloader stack
|
|
|
- *
|
|
|
+ *
|
|
|
* @param object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation
|
|
|
* @param null|string|array $namespace Specific namespace(s) from which to remove autoloader
|
|
|
* @return Zend_Loader_Autoloader
|
|
|
@@ -418,7 +418,7 @@ class Zend_Loader_Autoloader
|
|
|
* Constructor
|
|
|
*
|
|
|
* Registers instance with spl_autoload stack
|
|
|
- *
|
|
|
+ *
|
|
|
* @return void
|
|
|
*/
|
|
|
protected function __construct()
|
|
|
@@ -429,8 +429,8 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Internal autoloader implementation
|
|
|
- *
|
|
|
- * @param string $class
|
|
|
+ *
|
|
|
+ * @param string $class
|
|
|
* @return bool
|
|
|
*/
|
|
|
protected function _autoload($class)
|
|
|
@@ -450,9 +450,9 @@ class Zend_Loader_Autoloader
|
|
|
|
|
|
/**
|
|
|
* Set autoloaders for a specific namespace
|
|
|
- *
|
|
|
- * @param array $autoloaders
|
|
|
- * @param string $namespace
|
|
|
+ *
|
|
|
+ * @param array $autoloaders
|
|
|
+ * @param string $namespace
|
|
|
* @return Zend_Loader_Autoloader
|
|
|
*/
|
|
|
protected function _setNamespaceAutoloaders(array $autoloaders, $namespace = '')
|