class ClassLoader (View source)

Methods

static  bool
load( string $class)

Load the given class file.

static  string
normalizeClass( string $class)

Get the normal file name for a class.

static  void
register()

Register the given class loader on the auto-loader stack.

static  void
addDirectories( string|array $directories)

Add directories to the class loader.

static  void
removeDirectories( string|array $directories = null)

Remove directories from the class loader.

static  array
getDirectories()

Gets all the directories registered with the loader.

Details

at line line 27
static bool load( string $class)

Load the given class file.

Parameters

string $class

Return Value

bool

at line line 48
static string normalizeClass( string $class)

Get the normal file name for a class.

Parameters

string $class

Return Value

string

at line line 62
static void register()

Register the given class loader on the auto-loader stack.

Return Value

void

at line line 75
static void addDirectories( string|array $directories)

Add directories to the class loader.

Parameters

string|array $directories

Return Value

void

at line line 86
static void removeDirectories( string|array $directories = null)

Remove directories from the class loader.

Parameters

string|array $directories

Return Value

void

at line line 100
static array getDirectories()

Gets all the directories registered with the loader.

Return Value

array