An abstract class from which every Loader, i.e. every Autoloader module must inherit.

The purpose is to translate the class name to the address of the script where the class is located. It does not in any way perform class loading or the like. That is handled by the main Autoloader system class.

Method Meaning of
abstract public getAutoloaderName(
) : string;
Autoloader must have a name defined. This is used for example for possible error messages.
abstract public getScriptPath(
string $class_name
): bool|string;
The main method that performs the actual translation of the class name to the script path.

If the loader is not relevant for the class, then the method returns false.

Otherwise, the full path to the script file.
Previous chapter
Next chapter
Debugging and necessary tools