Path

ez components / documentation / api reference / 1.0.1 / base


eZ Components 1.0.1

Base: ezcBase

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcBase

Base class implements the methods needed to use the ezComponents. [source]

Constants

DEP_PHP_EXTENSION = "extension" Used for dependency checking, to check for a PHP extension.
DEP_PHP_VERSION = "version" Used for dependency checking, to check for a PHP version.
libraryMode = "devel" Indirectly it determines the path where the autoloads are stored.

Member Variables

protected array $autoloadArray = array()
protected string $packageDir

Method Summary

public static bool autoload( $className )
Tries to autoload the given className. If the className could be found this method returns true, otherwise false.
public static void checkDependency( $component, $type, $value )
protected static void loadFile( $file )
Loads, require(), the given file name. If we are in development mode, "/trunk/src/" is inserted into the path.
protected static bool requireFile( $fileName, $className )
Tries to load the autoload array and, if loaded correctly, includes the class.
protected static string setPackageDir( )
Returns the path to the autoload directory. The path depends on the installation of the ezComponents. The SVN version has different paths than the PEAR installed version. (For now).

Methods

autoload

bool autoload( string $className )
Tries to autoload the given className. If the className could be found this method returns true, otherwise false.
This class caches the requested class names (including the ones who failed to load).

Parameters

Name Type Description
$className string The name of the class that should be loaded.

checkDependency

void checkDependency( $component, $type, $value )

Parameters

Name Type Description
$component  
$type  
$value  

loadFile

void loadFile( string $file )
Loads, require(), the given file name. If we are in development mode, "/trunk/src/" is inserted into the path.

Parameters

Name Type Description
$file string The name of the file that should be loaded.

requireFile

bool requireFile( string $fileName, string $className )
Tries to load the autoload array and, if loaded correctly, includes the class.

Parameters

Name Type Description
$fileName string Name of the autoload file.
$className string Name of the class that should be autoloaded.

setPackageDir

string setPackageDir( )
Returns the path to the autoload directory. The path depends on the installation of the ezComponents. The SVN version has different paths than the PEAR installed version. (For now).

Last updated: Fri, 02 Nov 2007