\Zend_Loader_Autoloader
Autoloader stack and namespace autoloader
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Loader_Autoloader
{
- // members
- protected static Zend_Loader_Autoloader $_instance;
- protected array $_autoloaders = ;
- protected array $_defaultAutoloader = ;
- protected bool $_fallbackAutoloader = false;
- protected $_internalAutoloader;
- protected array $_namespaces = ;
- protected array $_namespaceAutoloaders = ;
- protected bool $_suppressNotFoundWarnings = false;
- protected null|string $_zfPath;
- // methods
- public static Zend_Loader_Autoloader getInstance()
- public static void resetInstance()
- public static bool autoload()
- public void setDefaultAutoloader()
- public string|array getDefaultAutoloader()
- public Zend_Loader_Autoloader setAutoloaders()
- public array getAutoloaders()
- public array getNamespaceAutoloaders()
- public Zend_Loader_Autoloader registerNamespace()
- public Zend_Loader_Autoloader unregisterNamespace()
- public array getRegisteredNamespaces()
- public void setZfPath()
- public void getZfPath()
- public bool|Zend_Loader_Autoloader suppressNotFoundWarnings()
- public Zend_Loader_Autoloader setFallbackAutoloader()
- public bool isFallbackAutoloader()
- public array getClassAutoloaders()
- public Zend_Loader_Autoloader unshiftAutoloader()
- public Zend_Loader_Autoloader pushAutoloader()
- public Zend_Loader_Autoloader removeAutoloader()
- protected void __construct()
- protected bool _autoload()
- protected Zend_Loader_Autoloader _setNamespaceAutoloaders()
- protected void _getVersionPath()
- protected string _getVersionType()
- protected array _getAvailableVersions()
Members
protected
- $_autoloaders — array
- $_defaultAutoloader — array
- $_fallbackAutoloader — bool
- $_instance — Zend_Loader_Autoloader
- $_internalAutoloader — array
- $_namespaceAutoloaders — array
- $_namespaces — array
- $_suppressNotFoundWarnings — bool
- $_zfPath — null|string
Methods
protected
- __construct() — Constructor
- _autoload() — Internal autoloader implementation
- _getAvailableVersions() — Get available versions for the version type requested
- _getVersionPath() — Retrieve the filesystem path for the requested ZF version
- _getVersionType() — Retrieve the ZF version type
- _setNamespaceAutoloaders() — Set autoloaders for a specific namespace
public
- autoload() — Autoload a class
- getAutoloaders() — Get attached autoloader implementations
- getClassAutoloaders() — Get autoloaders to use when matching class
- getDefaultAutoloader() — Retrieve the default autoloader callback
- getInstance() — Retrieve singleton instance
- getNamespaceAutoloaders() — Return all autoloaders for a given namespace
- getRegisteredNamespaces() — Get a list of registered autoload namespaces
- getZfPath()
- isFallbackAutoloader() — Is this instance acting as a fallback autoloader?
- pushAutoloader() — Append an autoloader to the autoloader stack
- registerNamespace() — Register a namespace to autoload
- removeAutoloader() — Remove an autoloader from the autoloader stack
- resetInstance() — Reset the singleton instance
- setAutoloaders() — Set several autoloader callbacks at once
- setDefaultAutoloader() — Set the default autoloader implementation
- setFallbackAutoloader() — Indicate whether or not this autoloader should be a fallback autoloader
- setZfPath()
- suppressNotFoundWarnings() — Get or set the value of the "suppress not found warnings" flag
- unregisterNamespace() — Unload a registered autoload namespace
- unshiftAutoloader() — Add an autoloader to the beginning of the stack