Public Member Functions | |
setDefaultAutoloader ($callback) | |
getDefaultAutoloader () | |
setAutoloaders (array $autoloaders) | |
getAutoloaders () | |
getNamespaceAutoloaders ($namespace) | |
registerNamespace ($namespace) | |
unregisterNamespace ($namespace) | |
getRegisteredNamespaces () | |
setZfPath ($spec, $version= 'latest') | |
getZfPath () | |
suppressNotFoundWarnings ($flag=null) | |
setFallbackAutoloader ($flag) | |
isFallbackAutoloader () | |
getClassAutoloaders ($class) | |
unshiftAutoloader ($callback, $namespace= '') | |
pushAutoloader ($callback, $namespace= '') | |
removeAutoloader ($callback, $namespace=null) | |
Static Public Member Functions | |
static | getInstance () |
static | resetInstance () |
static | autoload ($class) |
Protected Member Functions | |
__construct () | |
_autoload ($class) | |
_setNamespaceAutoloaders (array $autoloaders, $namespace= '') | |
_getVersionPath ($path, $version) | |
_getVersionType ($version) | |
_getAvailableVersions ($path, $version) | |
Protected Attributes | |
$_autoloaders = array() | |
$_defaultAutoloader = array('Zend_Loader', 'loadClass') | |
$_fallbackAutoloader = false | |
$_internalAutoloader | |
$_namespaces | |
$_namespaceAutoloaders = array() | |
$_suppressNotFoundWarnings = false | |
$_zfPath | |
Static Protected Attributes | |
static | $_instance |
Definition at line 35 of file Autoloader.php.
__construct | ( | ) | [protected] |
Constructor
Registers instance with spl_autoload stack
Definition at line 455 of file Autoloader.php.
_autoload | ( | $ | class ) | [protected] |
Internal autoloader implementation
string | $class |
Definition at line 467 of file Autoloader.php.
_getAvailableVersions | ( | $ | path, |
$ | version | ||
) | [protected] |
Get available versions for the version type requested
string | $path | |
string | $version |
Definition at line 554 of file Autoloader.php.
_getVersionPath | ( | $ | path, |
$ | version | ||
) | [protected] |
Retrieve the filesystem path for the requested ZF version
string | $path | |
string | $version |
Definition at line 503 of file Autoloader.php.
_getVersionType | ( | $ | version ) | [protected] |
Retrieve the ZF version type
string | $version |
Zend_Loader_Exception | if version string contains too many dots |
Definition at line 527 of file Autoloader.php.
_setNamespaceAutoloaders | ( | array $ | autoloaders, |
$ | namespace = '' |
||
) | [protected] |
Set autoloaders for a specific namespace
array | $autoloaders | |
string | $namespace |
Definition at line 489 of file Autoloader.php.
static autoload | ( | $ | class ) | [static] |
Autoload a class
string | $class |
Definition at line 114 of file Autoloader.php.
getAutoloaders | ( | ) |
Get attached autoloader implementations
Definition at line 182 of file Autoloader.php.
getClassAutoloaders | ( | $ | class ) |
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 all non-namespaced autoloaders.
string | $class |
Definition at line 329 of file Autoloader.php.
getDefaultAutoloader | ( | ) |
Retrieve the default autoloader callback
Definition at line 160 of file Autoloader.php.
static getInstance | ( | ) | [static] |
Retrieve singleton instance
Definition at line 90 of file Autoloader.php.
getNamespaceAutoloaders | ( | $ | namespace ) |
Return all autoloaders for a given namespace
string | $namespace |
Definition at line 193 of file Autoloader.php.
getRegisteredNamespaces | ( | ) |
Get a list of registered autoload namespaces
Definition at line 251 of file Autoloader.php.
isFallbackAutoloader | ( | ) |
Is this instance acting as a fallback autoloader?
Definition at line 314 of file Autoloader.php.
pushAutoloader | ( | $ | callback, |
$ | namespace = '' |
||
) |
Append an autoloader to the autoloader stack
object | array | string | $callback | PHP callback or Zend_Loader_Autoloader_Interface implementation |
string | array | $namespace | Specific namespace(s) under which to register callback |
Definition at line 396 of file Autoloader.php.
registerNamespace | ( | $ | namespace ) |
Register a namespace to autoload
string | array | $namespace |
Definition at line 208 of file Autoloader.php.
removeAutoloader | ( | $ | callback, |
$ | namespace = null |
||
) |
Remove an autoloader from the autoloader stack
object | array | string | $callback | PHP callback or Zend_Loader_Autoloader_Interface implementation |
null | string | array | $namespace | Specific namespace(s) from which to remove autoloader |
Definition at line 419 of file Autoloader.php.
static resetInstance | ( | ) | [static] |
setAutoloaders | ( | array $ | autoloaders ) |
Set several autoloader callbacks at once
array | $autoloaders | Array of PHP callbacks (or Zend_Loader_Autoloader_Interface implementations) to act as autoloaders |
Definition at line 171 of file Autoloader.php.
setDefaultAutoloader | ( | $ | callback ) |
Set the default autoloader implementation
string | array | $callback | PHP callback |
Definition at line 145 of file Autoloader.php.
setFallbackAutoloader | ( | $ | flag ) |
Indicate whether or not this autoloader should be a fallback autoloader
bool | $flag |
Definition at line 303 of file Autoloader.php.
suppressNotFoundWarnings | ( | $ | flag = null ) |
Get or set the value of the "suppress not found warnings" flag
null | bool | $flag |
Definition at line 288 of file Autoloader.php.
unregisterNamespace | ( | $ | namespace ) |
Unload a registered autoload namespace
string | array | $namespace |
Definition at line 230 of file Autoloader.php.
unshiftAutoloader | ( | $ | callback, |
$ | namespace = '' |
||
) |
Add an autoloader to the beginning of the stack
object | array | string | $callback | PHP callback or Zend_Loader_Autoloader_Interface implementation |
string | array | $namespace | Specific namespace(s) under which to register callback |
Definition at line 373 of file Autoloader.php.
$_namespaces [protected] |
array( 'Zend_' => true, 'ZendX_' => true, )
Definition at line 65 of file Autoloader.php.