// If the basePath is false it is invalid
if ($basePath2 === false) {
- /* @TODO: Do not die here. */
+ /* @todo: Do not die here. */
die("Cannot read {$basePath} !");
} else {
// Set base path
// Count this include
$this->total++;
+ // Mark this class as loaded
+ $this->loadedClasses[] = $this->classes[$fileName];
+
// Developer mode excludes caching (better debugging)
if (!defined('DEVELOPER')) {
- // Mark this class as loaded
- $this->loadedClasses[] = $this->classes[$fileName];
-
// Reset cache
$this->classesCached = false;
} // END - if
public final function getTotal () {
return $this->total;
}
+
+ /**
+ * Getter for a printable list of included classes/interfaces/exceptions
+ *
+ * @param $includeList A printable include list
+ */
+ public function getPrintableIncludeList () {
+ // Prepare the list
+ $includeList = "";
+ foreach ($this->loadedClasses as $classFile) {
+ $includeList .= basename($classFile)."<br />\n";
+ } // END - foreach
+
+ // And return it
+ return $includeList;
+ }
}
// [EOF]