]> git.mxchange.org Git - hub.git/commitdiff
Debug lines added, constant name fixed, internal TODO closed
authorRoland Häder <roland@mxchange.org>
Wed, 14 Mar 2012 14:10:16 +0000 (14:10 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 14 Mar 2012 14:10:16 +0000 (14:10 +0000)
application/hub/main/filter/node/class_NodeInitializationFilter.php
application/hub/main/filter/node/class_NodePhpRequirementsFilter.php

index 27a4cfcccbc943ce7c0f9dcec21f03e9763cdee4..31fa186f93c9c8bc0e9826896f8284dd74fb5b5e 100644 (file)
@@ -51,11 +51,11 @@ class NodeInitializationFilter extends BaseFilter implements Filterable {
         * @param       $requestInstance        An instance of a class with an Requestable interface
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
-        * @todo        0% done
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
                // The default node-mode is from our configuration
                $nodeMode = $this->getConfigInstance()->getConfigEntry('node_default_mode');
+               //* DEBUG: */ $this->debugOutput('[INIT:] Got default node mode ' . $nodeMode . ' from configuration.');
 
                // Is the node 'mode' parameter set?
                if ($requestInstance->isRequestElementSet('mode')) {
@@ -90,6 +90,7 @@ class NodeInitializationFilter extends BaseFilter implements Filterable {
 
                // Set the node instance in registry
                Registry::getRegistry()->addInstance('node', $nodeInstance);
+               //* DEBUG: */ $this->debugOutput('[INIT:] Node ' . $nodeMode . ' has been added to registry.');
        }
 }
 
index d11524e14b76d1b54e31cb63ff56f5f0fa82ce72..895e89d7cc2a7c9c3bb401c1d613308836d42ffb 100644 (file)
@@ -69,7 +69,7 @@ class NodePhpRequirementsFilter extends BaseFilter implements Filterable {
                // Are all tests passed?
                if ($checkPassed === false) {
                        // Throw an exception
-                       throw new FilterChainException($this, self::FILTER_CHAIN_INTERCEPTED);
+                       throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
                } // END - if
        }
 }