ErrLock PHP Framework  0.1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
EPF\Autoload Class Reference

The Autoload class. More...

Inheritance diagram for EPF\Autoload:
Inheritance graph
[legend]

Public Member Functions

 load (string $class)
 Load a class. More...
 
 get_namespace ()
 Get the namespace. More...
 
 get_path ()
 Get the base path. More...
 
 get_suffixes ()
 Get the suffixes. More...
 
- Public Member Functions inherited from EPF\StdClass
 __call (string $name, array $args)
 Call to inaccessible method. More...
 
 __get (string $name)
 Getter for inaccessible properties. More...
 
 __set (string $name, $value)
 Setter for inaccessible properties. More...
 

Static Public Member Functions

static register (string $namespace, string $path, array $suffixes=null)
 Register ourself with php. More...
 

Public Attributes

const DEFAULT_SUFFIXES
 

Detailed Description

The Autoload class.

Used to autoload classes

Remarks
This class registers itself with the following parameters:
  • namespace: ErrLock
  • path: The directory where this file resides

Member Function Documentation

◆ get_namespace()

EPF\Autoload::get_namespace ( )

Get the namespace.

Return values
stringnamespace

◆ get_path()

EPF\Autoload::get_path ( )

Get the base path.

Return values
stringpath

◆ get_suffixes()

EPF\Autoload::get_suffixes ( )

Get the suffixes.

Return values
arraysuffixes

◆ load()

EPF\Autoload::load ( string  $class)

Load a class.

Parameters
[in]stringclass The class to load (namespaced)

◆ register()

static EPF\Autoload::register ( string  $namespace,
string  $path,
array  $suffixes = null 
)
static

Register ourself with php.

Parameters
[in]stringnamespace Namespace
[in]stringpath Base path
[in]arraysuffixes Suffixes
Return values
AutoloadThe registered instance

Member Data Documentation

◆ DEFAULT_SUFFIXES

const EPF\Autoload::DEFAULT_SUFFIXES
Initial value:
= array(
'.php',
)

Default suffixes for file lookups


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