Class Autoloader
Extensible auto-loader for Core classes with support for user-defined callbacks to support arbitrary file architectures.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Autoloader
Namespace: Core
Package: Core
See:
Core\Autoloader::load()
Since: 3.0
Requires: PHP 5.3, SPL 5.2.1
Version: 2.1
Located at Autoloader.inc.php
Methods summary
public static
|
|
public static
|
#
add( callable|object|string $callableOrObject, string $methodName = null )
Registers a new auto-loader callback. |
public static
|
|
public static
boolean
|
|
public
boolean
|
#
load( $className )
Loads the Core-compatible module for the specified class. The module
name is extracted from the class name; namespace components are
transformed into module hierarchy levels. Supports module class extensions
by removing the class name part starting with an underscore (e.g. the
class |
public
boolean
|
#
remove( callable|object|string $callableOrObject, string $methodName = null )
Removes an auto-loader callback. |
public static
|
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
array
|
$_v_callbacks
Array of registered callbacks. |
#
array ()
|