This loader loads files from PHP's include path.
Files are added to this loader, and after that they can be "loaded" using their added short name.
The getInstance() method only looks through the added files when a class instance is requested.
Located in /Loaders/IncludePath.php (line 40)
The constructor.
Adds one file.
All files this loader should be able to load need to be added with this method. Otherwise getInstance() can't map from the file name to the class name and the file the class is defined in.
Example:
- $loader = new Ismo_Core_Loaders_IncludePath();
- $loader->addFile('main', 'Ismo_Example_States_Main',
- 'Ismo/Example/States/Main.php');
Returns the full path to a file found from PHP's include path.
This method needs to be implemented
Loads, creates and returns an instance of the requested class.
Looks through the added files (see
) and if a match is found that file is
and an instance created and returned.
- included
Tries to open a file if it's found from PHP's include path.
Note It's the callers responsibility to close the returned file handle.
This method needs to be implemented
Documentation generated on Mon, 14 Jun 2004 11:59:25 +0200 by phpDocumentor 1.3.0RC3