]> git.mxchange.org Git - hub.git/commitdiff
Updated ApplicationHelper class to latest API
authorRoland Häder <roland@mxchange.org>
Thu, 20 Dec 2012 21:18:49 +0000 (21:18 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 20 Dec 2012 21:18:49 +0000 (21:18 +0000)
application/hub/class_ApplicationHelper.php
application/hub/main/nodes/class_BaseHubNode.php

index 82c3ae4712be464034fe0f757b9ff5646740cf07..34c421ee9ced91cdf544b2fd521a5765e89935e8 100644 (file)
@@ -195,7 +195,7 @@ class ApplicationHelper extends BaseFrameworkSystem implements ManageableApplica
                } // END - if
 
                // Get a resolver
-               $resolverClass = sprintf("Hub%sControllerResolver", $this->convertToClassName($responseType));
+               $resolverClass = $this->convertToClassName($this->getAppShortName() . '_' . $responseType);
                $resolverInstance = ObjectFactory::createObjectByName($resolverClass, array($commandName, $this));
 
                // Get a controller instance as well
index 8f01488139862ea64d853e4b607d240e4cbec29e..5f16181572a4d3eeb8aa6275d74ed24423c904c8 100644 (file)
@@ -730,13 +730,13 @@ class BaseHubNode extends BaseHubSystem implements Updateable {
         */
        public function ifNodeHasAnnounced () {
                // Debug message
-               /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE: ifNodeHasAnnouncementCompleted(): state=' . $this->getStateInstance()->getStateName());
+               /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE: ifNodeHasAnnounced(): state=' . $this->getStateInstance()->getStateName());
 
                // Simply check the state of this node
                $hasAnnounced = ($this->getStateInstance() instanceof NodeAnnouncedState);
 
                // Debug message
-               /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE: ifNodeHasAnnouncementCompleted(): hasAnnounced=' . intval($hasAnnounced));
+               /* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('NODE: ifNodeHasAnnounced(): hasAnnounced=' . intval($hasAnnounced));
 
                // Return it
                return $hasAnnounced;