\Horde_Autoloader_ClassPathMapper_PrefixString

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

Summary

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

Properties

$_includePath

$_includePath : string

Include path.

Type

string

$_prefix

$_prefix : string

Prefix to search for.

Type

string

Methods

__construct()

__construct(string  $prefix, string  $includePath) 

Constructor

Parameters

string $prefix

Prefix.

string $includePath

Include path.

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.

_ipos()

_ipos(string  $haystack, string  $needle) : integer

Locale independant stripos() implementation.

Parameters

string $haystack

The string to search through.

string $needle

The string to search for.

Returns

integer —

The position of first case-insensitive occurrence.