]> git.mxchange.org Git - core.git/commitdiff
Added debug message, commented one out
authorRoland Häder <roland@mxchange.org>
Fri, 17 Aug 2012 20:16:25 +0000 (20:16 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 17 Aug 2012 20:16:25 +0000 (20:16 +0000)
inc/classes/main/criteria/class_BaseCriteria.php
inc/classes/main/database/databases/class_LocalFileDatabase.php

index 582a696b9b18e3cb583d61bccad22f12ac465ebd..549346f8a8d639d539fe69566b03c1f92324e17b 100644 (file)
@@ -79,6 +79,11 @@ class BaseCriteria extends BaseFrameworkSystem {
         * @return      void
         */
        public final function addCriteria ($criteriaKey, $criteriaValue) {
+               // Debug message
+               if (strpos($criteriaKey, 'my-') !== false) $this->debugBackTrace('criteriaKey=' . $criteriaKey);
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('CRITERIA: criteriaKey=' . $criteriaKey . ',criteriaValue=' . $criteriaValue);
+
+               // Add it
                $this->criteria[$this->convertDashesToUnderscores($criteriaKey)] = (string)$criteriaValue;
        }
 
index 375ec98ece9a00742edf85e71ba7e241d9d027d2..c6ab513e9f56bf22af0559ea62c0549bce088d6b 100644 (file)
@@ -475,7 +475,7 @@ class LocalFileDatabase extends BaseDatabaseBackend implements DatabaseBackendIn
                                // Does the extension match?
                                if (substr($dataFile, -(strlen($this->getFileExtension()))) !== $this->getFileExtension()) {
                                        // Debug message
-                                       /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DATABASE: dataFile=' . $dataFile . ',getFileExtension()=' . $this->getFileExtension() . ' - SKIPPED!');
+                                       //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('DATABASE: dataFile=' . $dataFile . ',getFileExtension()=' . $this->getFileExtension() . ' - SKIPPED!');
                                        // Skip this file!
                                        continue;
                                } // END - if