pclib  2.3.2
Lightweight PHP framework
Public Member Functions
Autoloader Class Reference

Simple autoloading of the classes. More...

Public Member Functions

 autoload ($class)
 Autoloading callback - do not use directly.
 
 register ()
 Register autoloader.
 
 unregister ()
 Unregister autoloader.
 
 addDirectory ($directory, $options=array())
 Add directory, where search for the class will be performed. More...
 
 addClasses (array $classes)
 Add list of classes and corresponding files where classes are defined. More...
 
 addAliases (array $aliases)
 Add list of class aliases. More...
 

Detailed Description

Simple autoloading of the classes.

Usually you will use default pclib autoloader: $pclib->autoloader. Features:

Member Function Documentation

addAliases ( array  $aliases)

Add list of class aliases.

Parameters
array$aliasesArray of className:aliasName pairs.
addClasses ( array  $classes)

Add list of classes and corresponding files where classes are defined.

Parameters
array$classesArray of className:fileName pairs.
addDirectory (   $directory,
  $options = array() 
)

Add directory, where search for the class will be performed.

Parameters
string$directoryDirectory path
array$optionsArray of options, e.g.: ['namespace' => 'RootNamespace']

The documentation for this class was generated from the following file: