Documentation

Autoload
in package

Reduced Horde Autoloader for test suites.

PHP version 7

Copyright 2009-2021 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
category

Horde

author

Jan Schneider jan@horde.org

author

Gunnar Wrobel wrobel@pardus.de

license

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

link
http://www.horde.org/components/Horde_Test

Table of Contents

$mappings  : array<string|int, mixed>
Prefix mappings.
$runonce  : bool
Only run init code once.
addPrefix()  : mixed
Add a prefix to the autoloader.
init()  : mixed
Base autoloader code for Horde PEAR packages.
resolve()  : string
Resolve classname to a filename.

Properties

$mappings

Prefix mappings.

private static array<string|int, mixed> $mappings = []

$runonce

Only run init code once.

private static bool $runonce = false

Methods

addPrefix()

Add a prefix to the autoloader.

public static addPrefix(string $prefix, string $path) : mixed
Parameters
$prefix : string

Prefix to add.

$path : string

Path to the prefix.

Return values
mixed

init()

Base autoloader code for Horde PEAR packages.

public static init() : mixed
Return values
mixed

resolve()

Resolve classname to a filename.

public static resolve(string $class) : string
Parameters
$class : string

Class name.

Return values
string

Resolved filename.

Search results