Zend Framework
1.12
|
Public Member Functions | |
setDefaultAutoloader ($callback) | |
Set the default autoloader implementation. | |
getDefaultAutoloader () | |
Retrieve the default autoloader callback. | |
setAutoloaders (array $autoloaders) | |
Set several autoloader callbacks at once. | |
getAutoloaders () | |
Get attached autoloader implementations. | |
getNamespaceAutoloaders ($namespace) | |
Return all autoloaders for a given namespace. | |
registerNamespace ($namespace) | |
Register a namespace to autoload. | |
unregisterNamespace ($namespace) | |
Unload a registered autoload namespace. | |
getRegisteredNamespaces () | |
Get a list of registered autoload namespaces. | |
setZfPath ($spec, $version= 'latest') | |
getZfPath () | |
suppressNotFoundWarnings ($flag=null) | |
Get or set the value of the "suppress not found warnings" flag. | |
setFallbackAutoloader ($flag) | |
Indicate whether or not this autoloader should be a fallback autoloader. | |
isFallbackAutoloader () | |
Is this instance acting as a fallback autoloader? | |
getClassAutoloaders ($class) | |
Get autoloaders to use when matching class. | |
unshiftAutoloader ($callback, $namespace= '') | |
Add an autoloader to the beginning of the stack. | |
pushAutoloader ($callback, $namespace= '') | |
Append an autoloader to the autoloader stack. | |
removeAutoloader ($callback, $namespace=null) | |
Remove an autoloader from the autoloader stack. | |
Static Public Member Functions | |
static | getInstance () |
Retrieve singleton instance. | |
static | resetInstance () |
Reset the singleton instance. | |
static | autoload ($class) |
Autoload a class. | |
Protected Member Functions | |
__construct () | |
Constructor. | |
_autoload ($class) | |
Internal autoloader implementation. | |
_setNamespaceAutoloaders (array $autoloaders, $namespace= '') | |
Set autoloaders for a specific namespace. | |
_getVersionPath ($path, $version) | |
Retrieve the filesystem path for the requested ZF version. | |
_getVersionType ($version) | |
Retrieve the ZF version type. | |
_getAvailableVersions ($path, $version) | |
Get available versions for the version type requested. | |
Protected Attributes | |
$_autoloaders = array() | |
$_defaultAutoloader = array('Zend_Loader', 'loadClass') | |
$_fallbackAutoloader = false | |
$_internalAutoloader | |
$_namespaces | |
$_namespaceAutoloaders = array() | |
$_suppressNotFoundWarnings = false | |
$_zfPath | |
Static Protected Attributes | |
static | $_instance |
|
protected |
Constructor.
Registers instance with spl_autoload stack
|
protected |
Internal autoloader implementation.
string | $class |
|
protected |
Get available versions for the version type requested.
string | $path | |
string | $version |
|
protected |
Retrieve the filesystem path for the requested ZF version.
string | $path | |
string | $version |
|
protected |
Retrieve the ZF version type.
string | $version |
Zend_Loader_Exception | if version string contains too many dots |
|
protected |
Set autoloaders for a specific namespace.
array | $autoloaders | |
string | $namespace |
|
static |
Autoload a class.
string | $class |
getAutoloaders | ( | ) |
Get attached autoloader implementations.
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 |
getDefaultAutoloader | ( | ) |
Retrieve the default autoloader callback.
|
static |
Retrieve singleton instance.
getNamespaceAutoloaders | ( | $namespace | ) |
Return all autoloaders for a given namespace.
string | $namespace |
getRegisteredNamespaces | ( | ) |
Get a list of registered autoload namespaces.
getZfPath | ( | ) |
isFallbackAutoloader | ( | ) |
Is this instance acting as a fallback autoloader?
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 |
registerNamespace | ( | $namespace | ) |
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 |
|
static |
Reset the singleton instance.
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 |
setDefaultAutoloader | ( | $callback | ) |
Set the default autoloader implementation.
string | array | $callback | PHP callback |
setFallbackAutoloader | ( | $flag | ) |
Indicate whether or not this autoloader should be a fallback autoloader.
bool | $flag |
setZfPath | ( | $spec, | |
$version = 'latest' |
|||
) |
suppressNotFoundWarnings | ( | $flag = null | ) |
Get or set the value of the "suppress not found warnings" flag.
null | bool | $flag |
unregisterNamespace | ( | $namespace | ) |
Unload a registered autoload namespace.
string | array | $namespace |
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 |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |