[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Loader/ -> Autoloader.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 582 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Loader_Autoloader:: (26 methods):
  getInstance()
  resetInstance()
  autoload()
  setDefaultAutoloader()
  getDefaultAutoloader()
  setAutoloaders()
  getAutoloaders()
  getNamespaceAutoloaders()
  registerNamespace()
  unregisterNamespace()
  getRegisteredNamespaces()
  setZfPath()
  getZfPath()
  suppressNotFoundWarnings()
  setFallbackAutoloader()
  isFallbackAutoloader()
  getClassAutoloaders()
  unshiftAutoloader()
  pushAutoloader()
  removeAutoloader()
  __construct()
  _autoload()
  _setNamespaceAutoloaders()
  _getVersionPath()
  _getVersionType()
  _getAvailableVersions()


Class: Zend_Loader_Autoloader  - X-Ref

Autoloader stack and namespace autoloader

getInstance()   X-Ref
Retrieve singleton instance

return: Zend_Loader_Autoloader

resetInstance()   X-Ref
Reset the singleton instance

return: void

autoload($class)   X-Ref
Autoload a class

param: string $class
return: bool

setDefaultAutoloader($callback)   X-Ref
Set the default autoloader implementation

param: string|array $callback PHP callback
return: void

getDefaultAutoloader()   X-Ref
Retrieve the default autoloader callback

return: string|array PHP Callback

setAutoloaders(array $autoloaders)   X-Ref
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

getAutoloaders()   X-Ref
Get attached autoloader implementations

return: array

getNamespaceAutoloaders($namespace)   X-Ref
Return all autoloaders for a given namespace

param: string $namespace
return: array

registerNamespace($namespace)   X-Ref
Register a namespace to autoload

param: string|array $namespace
return: Zend_Loader_Autoloader

unregisterNamespace($namespace)   X-Ref
Unload a registered autoload namespace

param: string|array $namespace
return: Zend_Loader_Autoloader

getRegisteredNamespaces()   X-Ref
Get a list of registered autoload namespaces

return: array

setZfPath($spec, $version = 'latest')   X-Ref
No description

getZfPath()   X-Ref
No description

suppressNotFoundWarnings($flag = null)   X-Ref
Get or set the value of the "suppress not found warnings" flag

param: null|bool $flag
return: bool|Zend_Loader_Autoloader Returns boolean if no argument is passed, object instance otherwise

setFallbackAutoloader($flag)   X-Ref
Indicate whether or not this autoloader should be a fallback autoloader

param: bool $flag
return: Zend_Loader_Autoloader

isFallbackAutoloader()   X-Ref
Is this instance acting as a fallback autoloader?

return: bool

getClassAutoloaders($class)   X-Ref
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.

param: string $class
return: array Array of autoloaders to use

unshiftAutoloader($callback, $namespace = '')   X-Ref
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

pushAutoloader($callback, $namespace = '')   X-Ref
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

removeAutoloader($callback, $namespace = null)   X-Ref
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

__construct()   X-Ref
Constructor

Registers instance with spl_autoload stack

return: void

_autoload($class)   X-Ref
Internal autoloader implementation

param: string $class
return: bool

_setNamespaceAutoloaders(array $autoloaders, $namespace = '')   X-Ref
Set autoloaders for a specific namespace

param: array $autoloaders
param: string $namespace
return: Zend_Loader_Autoloader

_getVersionPath($path, $version)   X-Ref
Retrieve the filesystem path for the requested ZF version

param: string $path
param: string $version
return: void

_getVersionType($version)   X-Ref
Retrieve the ZF version type

param: string $version
return: string "latest", "major", "minor", or "specific"

_getAvailableVersions($path, $version)   X-Ref
Get available versions for the version type requested

param: string $path
param: string $version
return: array



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1