Arbit - project tracking

Arbit - project tracking

API documentation :: Docs For Class arbitFrameworkBase

Core::arbitFrameworkBase

Class arbitFrameworkBase

Arbit framework base class Implements the autoload handling for arbit and the used libraries.

Arbit framework base class Implements the autoload handling for arbit and the used libraries.

Author(s):
Version:   $Revision: 1692 $
License:   GPL

Member Variables

protected static array $autoloadMapping
Core autoload mapping

Core autoload mapping

protected static array $libraryAutoloadMapping
Libraries autoload mapping

Libraries autoload mapping

protected static resource $logFile
Logfile pointer for autoload logging

Logfile pointer for autoload logging

protected static array $moduleAutoloadMapping
Modules autoload mapping

Modules autoload mapping

Method Summary

public static bool autoload( $class )
Tries to load an arbit class Tries to find a arbit class in the core and in the various autoload definitions of the registered modules.
public static void clearAutoloadCache( )
Clears autoload cache Especialls module autoload definitions are cached in static properties.
public static bool libraryAutoload( $class )
Tries to autoload a library class Uses the library autoload array to look for library classes.
protected static void logAutoloads( $file )
Log all autoloads to a file in the arbit root

Methods

autoload

static bool autoload( string $class )

Tries to load an arbit class Tries to find a arbit class in the core and in the various autoload definitions of the registered modules.

Tries to load an arbit class Tries to find a arbit class in the core and in the various autoload definitions of the registered modules.

Parameters:
Name Type Description
$class string

clearAutoloadCache

static void clearAutoloadCache( )

Clears autoload cache Especialls module autoload definitions are cached in static properties.

Clears autoload cache Especialls module autoload definitions are cached in static properties. When a module is loaded after the cache has been created a first time its autoload definitions would not be found, so that this method allows you to clear this autoload definition cache.

libraryAutoload

static bool libraryAutoload( string $class )

Tries to autoload a library class Uses the library autoload array to look for library classes.

Tries to autoload a library class Uses the library autoload array to look for library classes.

Parameters:
Name Type Description
$class string

logAutoloads

static void logAutoloads( string $file )

Log all autoloads to a file in the arbit root

Log all autoloads to a file in the arbit root

Parameters:
Name Type Description
$file string
Documentation generated on Mon, 05 Apr 2010 14:01:37 +0200 by phpDocumentor 1.4.3