Documentation

Horde_Autoloader_ClassPathMapper_Default
in package
implements Horde_Autoloader_ClassPathMapper

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 DIRECTORY_SEPARATOR. 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
Tags
author

Chuck Hagenbuch chuck@horde.org

category

Horde

copyright

2008-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Interfaces, Classes, Traits and Enums

Horde_Autoloader_ClassPathMapper
Interface for autoloader class path mappers.

Table of Contents

$_includePath  : string
__construct()  : mixed
Constructor.
mapToPath()  : mixed
Search for a mapping from class to file path.

Properties

$_includePath

private string $_includePath

Methods

__construct()

Constructor.

public __construct(string $includePath) : mixed
Parameters
$includePath : 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.

Search results