ClassLoader Class Reference

Collaboration diagram for ClassLoader:

Collaboration graph
[legend]

List of all members.


Detailed Description

This class loads class include files with a specific prefix and suffix.

Author:
Roland Haeder <webmaster@ship-simu.org>
Version:
0.0.0 Copyright (c) 2007, 2008 Roland Haeder, this is free software GNU GPL 3.0 or any newer version This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. ---------------------------------- 1.2ClassLoader rewritten to PHP SPL's own RecursiveIteratorIterator class 1.1loadClasses rewritten to fix some notices 1.0Initial release ----------------------------------

Definition at line 33 of file class_ClassLoader.php.


Public Member Functions

 __construct (FrameworkConfiguration $cfgInstance)
 The *public* constructor.
 __destruct ()
 The destructor makes it sure all caches got flushed.
 getPrintableIncludeList ()
 Getter for a printable list of included classes/interfaces/exceptions.
 getTotal ()
 Getter for total include counter.
 includeClass ($className)
 Tries to find the given class in our list.
 loadClasses ($basePath, $ignoreList=array())
 Scans recursively a local path for class files which must have a prefix and a suffix as given by $this->suffix and $this->prefix.
 loadExtraConfigs ()
 Load extra config files.

Static Public Member Functions

static getInstance ()
 Getter for an instance of this class.

Private Member Functions

 includeExtraConfigs ()
 Includes all extra config files.

Private Attributes

 $cfg = array()
 Configuration array.
 $classCacheFQFN = ""
 Cache for class content.
 $classes = array()
 Array with all classes.
 $classesCached = false
 Wethe class content has been cached.
 $debug = false
 Debug this class loader? (true = yes, false = no).
 $ignoreList = array()
 A list for directory names (no leading/trailing slashes!) which not be scanned by the path scanner.
 $listCached = false
 Wether the file list is cached or not.
 $listCacheFQFN = ""
 Filename for the list cache.
 $loadedClasses = array()
 List of loaded classes.
 $prefix = "class_"
 Suffix with extension for all class files.
 $prefixLen = 0
 Length of the prefix.
 $suffix = ".php"
 Suffix with extension for all class files.
 $suffixLen = 0
 Length of the suffix.
 $total = 0
 Counter for loaded include files.

Static Private Attributes

static $selfInstance = null
 Instance of this class.

The documentation for this class was generated from the following file:

Generated on Mon Dec 8 01:10:21 2008 for Ship-Simulator by  doxygen 1.5.6