\AutoloadPlug

To be as flexible as possible, our autoload uses a dynamically set callback to determine wher a class is defined.

Summary

Methods
Properties
Constants
setCallback()
autoload()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_callback
N/A

Properties

$_callback

$_callback

Methods

setCallback()

setCallback(callback $callback)

Set the callback to be called when a new classname is requested.

The callback is assumed to do some "require_once" or similar, but you are free to let it do something else.

Parameters

callback $callback

autoload()

autoload(string $classname)

This static method is called by the __autoload function.

Parameters

string $classname