Class Horde_Loader

Description

Located in /Loader/Loader.php (line 5)


	
			
Method Summary
 static string addClassPath (string $path, [boolean $prepend = true])
 static void loadClass (string $class)
Methods
static addClassPath (line 35)

Add a new path to the include_path we're loading from.

  • return: The new include_path.
  • access: public
static string addClassPath (string $path, [boolean $prepend = true])
  • string $path: The directory to add.
  • boolean $prepend: Add to the beginning of the stack?
static loadClass (line 19)

Autoload implementation automatically registered with spl_autoload_register.

We ignore E_WARNINGS when trying to include files so that if our autoloader doesn't find a file, we pass on to the next autoloader (if any) or to the PHP class not found error. We don't want to suppress all errors, though, or else we'll end up silencing parse errors or redefined class name errors, making debugging especially difficult.

  • access: public
static void loadClass (string $class)
  • string $class: Class name to load (or interface).

Documentation generated on Sun, 30 Jan 2011 05:19:19 +0000 by phpDocumentor 1.4.3