\Horde_Autoloader_ClassPathMapper_Default

Provides classmapper that maps classes to paths following the PHP Framework Interop Group PSR-0 reference implementation.

Under this guideline, the following rules apply:

  • Each namespace separator is converted to a DIRECTORY_SEPARATOR when loading from the file system.
  • Each "_" character in the CLASS NAME is converted to a DIRECTORYSEPARATOR. The "" character has no special meaning in the namespace.
  • The fully-qualified namespace and class is suffixed with ".php" when loading from the file system.

Examples:

  • \Doctrine\Common\IsolatedClassLoader => /path/to/project/lib/vendor/Doctrine/Common/IsolatedClassLoader.php
  • \namespace\package\Class_Name => /path/to/project/lib/vendor/namespace/package/Class/Name.php
  • \namespace\package_name\Class_Name => /path/to/project/lib/vendor/namespace/package_name/Class/Name.php

Summary

Methods
Properties
Constants
__construct()
mapToPath()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_includePath
N/A

Properties

$_includePath

$_includePath : string

Type

string

Methods

__construct()

__construct(string  $includePath) 

Constructor.

Parameters

string $includePath

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.