Documentation

Horde_Autoloader_ClassPathMapper_PrefixString
in package
implements Horde_Autoloader_ClassPathMapper

Provides a classmapper that implements prefix matching using a simple string search within a base application directory.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2014-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
Include path.
$_prefix  : string
Prefix to search for.
__construct()  : mixed
Constructor
mapToPath()  : mixed
Search for a mapping from class to file path.
_ipos()  : int
Locale independant stripos() implementation.

Properties

$_includePath

Include path.

private string $_includePath

Methods

__construct()

Constructor

public __construct(string $prefix, string $includePath) : mixed
Parameters
$prefix : string

Prefix.

$includePath : string

Include path.

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.

_ipos()

Locale independant stripos() implementation.

protected _ipos(string $haystack, string $needle) : int
Parameters
$haystack : string

The string to search through.

$needle : string

The string to search for.

Return values
int

The position of first case-insensitive occurrence.

Search results