Class ALoader

Description

A class/file loader for Alia

Located in /lib/ALoader.php (line 24)


	
			
Variable Summary
 static mixed $instanceObject
 mixed $libPath
 mixed $paths
Method Summary
 void addPathToBeginning (string $path)
 void addPathToEnd (unknown_type $path)
 void addReplacement (mixed $search, mixed $replace)
 string getFileContents (string $fileName)
 void getFilePath (string $fileName)
 void includeFile (string $fileName)
 void includeFileOnce (string $fileName)
 void loadClass ( $class)
 void setLibPath (string $path)
Variables
static mixed $instanceObject = null (line 25)
  • access: private
mixed $libPath (line 27)
  • access: private
mixed $paths = array() (line 26)
  • access: private
mixed $replacements = array() (line 29)
  • access: private
Methods
addPathToBeginning (line 113)

adds a path to the beginning of the path list. paths in the beginning are searched first.

  • access: public
void addPathToBeginning (string $path)
  • string $path
addPathToEnd (line 125)

Adds a path to the end of the path list. paths added to the end are searched last.

  • access: public
void addPathToEnd (unknown_type $path)
  • unknown_type $path
addReplacement (line 155)

addReplacement Adds a string replacement rule to the loader.

All instances of $search will be replaced with $replace while loading paths.

  • access: public
void addReplacement (mixed $search, mixed $replace)
  • mixed $search
  • mixed $replace
getFileContents (line 102)

get the contents of a file

  • access: public
string getFileContents (string $fileName)
  • string $fileName
getFilePath (line 80)

returns the full path to the file

  • access: public
void getFilePath (string $fileName)
  • string $fileName
includeFile (line 70)

includes a file

  • access: public
void includeFile (string $fileName)
  • string $fileName
includeFileOnce (line 60)

includes a file once

  • access: public
void includeFileOnce (string $fileName)
  • string $fileName
instance (line 37)

returns the instance of the ALoader object

  • access: public
ALoader instance ()
loadClass (line 45)
  • access: public
void loadClass ( $class)
  • $class
setLibPath (line 136)

sets the path to the alia libray

  • access: public
void setLibPath (string $path)
  • string $path

Documentation generated on Fri, 11 Jul 2008 13:28:41 -0400 by phpDocumentor 1.4.2