\Horde_Autoloader_ClassPathMapper_Application

Provides a classmapper that implements generic pattern for different mapping types within the application directory.

Summary

Methods
Properties
Constants
__construct()
addMapping()
mapToPath()
__toString()
No public properties found
APPLICATION_POS
ACTION_POS
SUFFIX_POS
NAME_SEGMENT
No protected methods found
$_appDir
$_mappings
N/A
No private methods found
No private properties found
N/A

Constants

APPLICATION_POS

APPLICATION_POS

The following constants are for naming the positions in the regex for easy readability later.

ACTION_POS

ACTION_POS

SUFFIX_POS

SUFFIX_POS

NAME_SEGMENT

NAME_SEGMENT

Properties

$_appDir

$_appDir : string

Type

string

$_mappings

$_mappings : array

Type

array

Methods

__construct()

__construct(string  $appDir) 

Constructor.

Parameters

string $appDir

addMapping()

addMapping(string  $classSuffix, string  $subDir) 

Parameters

string $classSuffix
string $subDir

mapToPath()

mapToPath(string  $className) : mixed

Search for a mapping from class to file path.

Parameters

string $className

Classname to load.

Returns

mixed —

Pathname to class, or false if not found.

__toString()

__toString() : string

String representation of class.

Returns

string