class AliasLoader (View source)

Methods

static  AliasLoader
getInstance( array $aliases = array())

Get or create the singleton alias loader instance.

bool|null
load( string $alias)

Load a class alias if it is registered.

void
alias( string $class, string $alias)

Add an alias to the loader.

void
register()

Register the loader on the auto-loader stack.

array
getAliases()

Get the registered aliases.

void
setAliases( array $aliases)

Set the registered aliases.

bool
isRegistered()

Indicates if the loader has been registered.

void
setRegistered( bool $value)

Set the "registered" state of the loader.

static  void
setInstance( AliasLoader $loader)

Set the value of the singleton alias loader.

Details

at line line 44
static AliasLoader getInstance( array $aliases = array())

Get or create the singleton alias loader instance.

Parameters

array $aliases

Return Value

AliasLoader

at line line 63
bool|null load( string $alias)

Load a class alias if it is registered.

Parameters

string $alias

Return Value

bool|null

at line line 77
void alias( string $class, string $alias)

Add an alias to the loader.

Parameters

string $class
string $alias

Return Value

void

at line line 87
void register()

Register the loader on the auto-loader stack.

Return Value

void

at line line 111
array getAliases()

Get the registered aliases.

Return Value

array

at line line 122
void setAliases( array $aliases)

Set the registered aliases.

Parameters

array $aliases

Return Value

void

at line line 132
bool isRegistered()

Indicates if the loader has been registered.

Return Value

bool

at line line 143
void setRegistered( bool $value)

Set the "registered" state of the loader.

Parameters

bool $value

Return Value

void

at line line 154
static void setInstance( AliasLoader $loader)

Set the value of the singleton alias loader.

Parameters

AliasLoader $loader

Return Value

void