\Puyo\LoaderPsr0

PSR-0準拠のautoloader

1つのnamespace-pathの対応とその登録/解除を行う

Summary

Methods
Properties
Constants
__construct()
setIncludePath()
getIncludePath()
setFileExtension()
getFileExtension()
register()
unregister()
loadClass()
No public properties found
NS_SEPARATOR
No protected methods found
No protected properties found
N/A
No private methods found
$namespace
$includePath
$fileExt
N/A

Constants

NS_SEPARATOR

NS_SEPARATOR

Properties

$namespace

$namespace : 

Type

$includePath

$includePath : 

Type

$fileExt

$fileExt : 

Type

Methods

__construct()

__construct(string  $nsRoot = null, string  $includePath = null, string  $fileExt = '.php') 

constructor

PEAR形式をマッピングする場合、$ns には null を指定する。

Parameters

string $nsRoot

(optional)

string $includePath

(optional)

string $fileExt

(optional) default='.php'

setIncludePath()

setIncludePath(string  $includePath) 

Sets the base include path for all class files in the namespace of this class loader.

Parameters

string $includePath

getIncludePath()

getIncludePath() : string

Gets the base include path for all class files in the namespace of this class loader.

Returns

string —

$includePath

setFileExtension()

setFileExtension(string  $fileExt) 

Sets the file extension of class files in the namespace of this class loader.

Parameters

string $fileExt

getFileExtension()

getFileExtension() : string

Gets the file extension of class files in the namespace of this class loader.

Returns

string —

$fileExtension

register()

register() 

Installs this class loader on the SPL autoload stack.

unregister()

unregister() 

Uninstalls this class loader from the SPL autoloader stack.

loadClass()

loadClass(string  $className) : void

Loads the given class or interface.

Parameters

string $className

The name of the class to load.