Documentation

Less_Autoloader
in package

Autoloader

Tags
subpackage

autoload

Table of Contents

$libDir  : string
Library directory
$registered  : bool
Registered flag
loadClass()  : mixed
Loads the class
register()  : void
Register the autoloader in the spl autoloader
unregister()  : void
Unregisters the autoloader

Properties

$libDir

Library directory

protected static string $libDir

$registered

Registered flag

protected static bool $registered = alse

Methods

loadClass()

Loads the class

public static loadClass(string $className) : mixed
Parameters
$className : string

The class to load

Return values
mixed

register()

Register the autoloader in the spl autoloader

public static register() : void
Tags
throws
Exception

If there was an error in registration

Return values
void

unregister()

Unregisters the autoloader

public static unregister() : void
Return values
void

Search results