Horde_Autoloader_ClassPathMapper_Application
in package
implements
Horde_Autoloader_ClassPathMapper
Provides a classmapper that implements generic pattern for different mapping types within the application directory.
Tags
Interfaces, Classes, Traits and Enums
- Horde_Autoloader_ClassPathMapper
- Interface for autoloader class path mappers.
Table of Contents
- ACTION_POS = 2
- APPLICATION_POS = 1
- The following constants are for naming the positions in the regex for easy readability later.
- NAME_SEGMENT = '([0-9A-Z][0-9A-Za-z]+)+'
- SUFFIX_POS = 3
- $_appDir : string
- $_mappings : array<string|int, mixed>
- __construct() : mixed
- Constructor.
- __toString() : string
- String representation of class.
- addMapping() : mixed
- mapToPath() : mixed
- Search for a mapping from class to file path.
Constants
ACTION_POS
public
mixed
ACTION_POS
= 2
APPLICATION_POS
The following constants are for naming the positions in the regex for easy readability later.
public
mixed
APPLICATION_POS
= 1
NAME_SEGMENT
public
mixed
NAME_SEGMENT
= '([0-9A-Z][0-9A-Za-z]+)+'
SUFFIX_POS
public
mixed
SUFFIX_POS
= 3
Properties
$_appDir
protected
string
$_appDir
$_mappings
protected
array<string|int, mixed>
$_mappings
= array()
Methods
__construct()
Constructor.
public
__construct(string $appDir) : mixed
Parameters
- $appDir : string
Return values
mixed —__toString()
String representation of class.
public
__toString() : string
Return values
string —addMapping()
public
addMapping(string $classSuffix, string $subDir) : mixed
Parameters
- $classSuffix : string
- $subDir : string
Return values
mixed —mapToPath()
Search for a mapping from class to file path.
public
mapToPath(mixed $className) : mixed
Parameters
- $className : mixed
-
Classname to load.
Return values
mixed —Pathname to class, or false if not found.