]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/helper/hub/class_
Refactured nodeInstance to be no longer stored in helpers
[hub.git] / application / hub / main / helper / hub / class_
index 806c4c80559e347ce5c88df49f96b3844439257d..16c632308dd707e9892f0d73d2b63ae6cc14ef0c 100644 (file)
@@ -61,11 +61,12 @@ class Hub???Helper extends BaseHubHelper implements HelpableHub {
        /**
         * Do the helped attempt by delivering a package to ourselfs
         *
+        * @param       $nodeInstance   An instance of a NodeHelper class
         * @return      void
         */
-       public function sendPackage () {
+       public function sendPackage (NodeHelper $nodeInstance) {
                // Sanity check: Is the node in the approx. state? (active)
-               $this->getNodeInstance()->getStateInstance()->validateNodeStateIsActive();
+               $nodeInstance->getStateInstance()->validateNodeStateIsActive();
 
                // Compile the template, this inserts the loaded node data into the gaps.
                $this->getTemplateInstance()->compileTemplate();