* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* ----------------------------------
+ * 1.4
+ * - Some comments improved, other minor improvements
* 1.3
* - Constructor is now empty and factory method 'createClassLoader' is created
* - renamed loadClasses to scanClassPath
}
/**
- * Our renamed factory method
+ * Creates an instance of this class loader for given configuration instance
*
- * @param $configInstance Configuration class instance
+ * @param $configInstance Configuration class instance
* @return void
*/
public static final function createClassLoader (FrameworkConfiguration $configInstance) {
/**
* Singleton getter for an instance of this class
*
- * @return $selfInstance A singleton instance of this class
+ * @return $selfInstance A singleton instance of this class
*/
public static final function getSelfInstance () {
// Is the instance there?
return;
} // END - if
- // Directories which our class loader ignores by default while
- // deep-scanning the directory structure.
+ /*
+ * Directories which this class loader ignores by default while
+ * scanning the whole directory structure starting from given base
+ * path.
+ */
$ignoreList[] = '.';
$ignoreList[] = '..';
$ignoreList[] = '.htaccess';
// Keep it in class for later usage
$this->ignoreList = $ignoreList;
- // Set base directory which holds all our classes, we should use an
- // absolute path here so is_dir(), is_file() and so on will always
- // find the correct files and dirs.
+ /*
+ * Set base directory which holds all our classes, we should use an
+ * absolute path here so is_dir(), is_file() and so on will always
+ * find the correct files and dirs.
+ */
$basePath2 = realpath($basePath);
// If the basePath is false it is invalid
// Include these extra configs now
$this->includeExtraConfigs();
- // Set the prefix back
+ // Set back the old prefix
$this->prefix = $oldPrefix;
}