* @version 0.0.0
* @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software
* @license GNU GPL 3.0 or any newer version
- * @link http://www.ship-simu.org
+ * @link http://www.ship-simu.org
*
* 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
*/
private $classCacheFQFN = "";
+ /**
+ * Counter for loaded include files
+ */
+ private $total = 0;
+
/**
* The *public* constructor
*
// If the basePath is false it is invalid
if ($basePath2 === false) {
// TODO: Do not die here.
- debug_print_backtrace();
die("Cannot read {$basePath} !");
} else {
// Set base path
// File is found so load it only once
require($this->classes[$fileName]);
+ // Count this include
+ $this->total++;
+
// Developer mode excludes caching (better debugging)
if (!defined('DEVELOPER')) {
// Mark this class as loaded
} // END - if
} // END - foreach
}
+
+ /**
+ * Getter for total include counter
+ *
+ * @return $total Total loaded include files
+ */
+ public final function getTotal () {
+ return $this->total;
+ }
}
// [EOF]