Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

 Class JLoader

Description

Located in /loader.php (line 21)

Class JLoader
Method Summary
Method void import ( $filePath, [string $base = null], [string $key = 'libraries.'], string $name)
Method boolean load (string $class)
Method array|boolean &register ([ $class = null], [string $file = null], string $classname)
Methods
import (line 32)

Loads a class from specified directories.

  • since: 1.5
void import ( $filePath, [string $base = null], [string $key = 'libraries.'], string $name)
  • string $name: The class name to look for ( dot notation ).
  • string $base: Search this directory for the class.
  • string $key: String used as a prefix to denote the full path of the file ( dot notation ).
  • $filePath
load (line 130)

Load the file for a class

  • return: True on success
  • since: 1.5
  • access: public
boolean load (string $class)
  • string $class: The class that will be loaded
register (line 97)

Add a class to autoload

  • return: Array of classes
  • since: 1.5
array|boolean &register ([ $class = null], [string $file = null], string $classname)
  • string $classname: The class name
  • string $file: Full path to the file that holds the class
  • $class

Documentation generated on Tue, 29 Jan 2008 18:48:12 +0000 by phpDocumentor 1.3.1