Contrexx ClassLoader

copyright CONTREXX CMS - COMVATION AG
author COMVATION Development Team
package contrexx
subpackage core_classloader

 Methods

To use LegacyClassLoader config.php and set_constants.php must be loaded If they are not present, set $useLegacyAsFallback to false!

__construct(String $basePath, boolean $useLegacyAsFallback, $customizingPath) 

Parameters

$basePath

String

Base directory to load files (e.g. ASCMS_DOCUMENT_ROOT)

$useLegacyAsFallback

boolean

(optional) Wheter to use LegacyClassLoader too (default) or not

$customizingPath

This needs to be public because Doctrine tries to load a class using all registered autoloaders.

autoload(\Cx\Core\ClassLoader\type $name) : \Cx\Core\ClassLoader\type

Parameters

$name

\Cx\Core\ClassLoader\type

Returns

\Cx\Core\ClassLoader\typevoid

Tests if a class is available.

classExists(string $class, boolean $useLegacy, boolean $useCustomizing) : boolean

You may specify if legacy and customizing can be used to load it if necessary.

todo $useCustomizing does not work correctly if legacy is enabled

Parameters

$class

string

Class name to look for

$useLegacy

boolean

(optional) Wheter to allow usage of legacy class loader or not (default false)

$useCustomizing

boolean

(optional) Wheter to allow usage of customizings or not (default true)

Returns

booleanTrue if class could be found using the allowed methods, false otherwise

getFilePath()

getFilePath($file, $isCustomized) 

Parameters

$file

$isCustomized

loadFile()

loadFile($path) 

Parameters

$path

load()

load($name, $resolvedPath) 

Parameters

$name

$resolvedPath

loadLegacy()

loadLegacy($name) 

Parameters

$name

 Properties

 

$basePath 
 

$customizingPath 
 

$legacyClassLoader 
© Copyright 2014 by Comvation AG
Generated on 2014-07-11T08:39:23+02:00.