]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/loader/class_ClassLoader.php
Login and auth classes added. WARNING: All class config entries must end with _class!
[shipsimu.git] / inc / loader / class_ClassLoader.php
index 4eb1223473c92d6cef605a4bbe942d92d6e43693..fa9c771d9f23912c58b003725cf68f51d0917c5a 100644 (file)
@@ -102,6 +102,11 @@ class ClassLoader {
         */
        private $classCacheFQFN = "";
 
+       /**
+        * Counter for loaded include files
+        */
+       private $total = 0;
+
        /**
         * The *public* constructor
         *
@@ -306,6 +311,9 @@ class ClassLoader {
                        // 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
@@ -335,6 +343,15 @@ class ClassLoader {
                        } // END - if
                } // END - foreach
        }
+
+       /**
+        * Getter for total include counter
+        *
+        * @return      $total  Total loaded include files
+        */
+       public final function getTotal () {
+               return $this->total;
+       }
 }
 
 // [EOF]