]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/class_BaseHubSystem.php
Removed getNodeInstance() and setNodeInstance(). Please now use the following
[hub.git] / application / hub / main / class_BaseHubSystem.php
index 1b2f3275afc149e94edf5b5a26e7431da53658f2..77bf1c3456bf5096e76cb203d92354e44a250413 100644 (file)
@@ -59,11 +59,6 @@ class BaseHubSystem extends BaseFrameworkSystem {
         */
        private $receiverInstance = NULL;
 
-       /**
-        * State instance
-        */
-       private $stateInstance = NULL;
-
        /**
         * Listener pool instance
         */
@@ -84,11 +79,6 @@ class BaseHubSystem extends BaseFrameworkSystem {
         */
        private $infoInstance = NULL;
 
-       /**
-        * Name of used protocol
-        */
-       private $protocolName = 'invalid';
-
        /**
         * Protected constructor
         *
@@ -100,25 +90,6 @@ class BaseHubSystem extends BaseFrameworkSystem {
                parent::__construct($className);
        }
 
-       /**
-        * Getter for node instance
-        *
-        * @return      $nodeInstance   An instance of a node node
-        */
-       public final function getNodeInstance () {
-               return $this->nodeInstance;
-       }
-
-       /**
-        * Setter for node instance
-        *
-        * @param       $nodeInstance   An instance of a node node
-        * @return      void
-        */
-       protected final function setNodeInstance (NodeHelper $nodeInstance) {
-               $this->nodeInstance = $nodeInstance;
-       }
-
        /**
         * Setter for network package handler instance
         *
@@ -157,25 +128,6 @@ class BaseHubSystem extends BaseFrameworkSystem {
                return $this->receiverInstance;
        }
 
-       /**
-        * Setter for state instance
-        *
-        * @param       $stateInstance  A Stateable instance
-        * @return      void
-        */
-       public final function setStateInstance (Stateable $stateInstance) {
-               $this->stateInstance = $stateInstance;
-       }
-
-       /**
-        * Getter for state instance
-        *
-        * @return      $stateInstance  A Stateable instance
-        */
-       public final function getStateInstance () {
-               return $this->stateInstance;
-       }
-
        /**
         * Setter for listener pool instance
         *
@@ -334,25 +286,6 @@ class BaseHubSystem extends BaseFrameworkSystem {
                return $this->getConfigInstance()->getConfigEntry('session_id');
        }
 
-       /**
-        * Getter for protocol name
-        *
-        * @return      $protocolName   Name of used protocol
-        */
-       public final function getProtocolName () {
-               return $this->protocolName;
-       }
-
-       /**
-        * Setter for protocol name
-        *
-        * @param       $protocolName   Name of used protocol
-        * @return      void
-        */
-       protected final function setProtocolName ($protocolName) {
-               $this->protocolName = $protocolName;
-       }
-
        /**
         * Constructs a callable method name from given socket error code. If the
         * method is not found, a generic one is used.
@@ -363,7 +296,7 @@ class BaseHubSystem extends BaseFrameworkSystem {
         */
        protected function getSocketErrorHandlerFromCode ($errorCode) {
                // Create a name from translated error code
-               $handlerName = 'socketError' . $this->convertToClassName($this->translateSocketErrorCodeToName($errorCode)) . 'Handler';
+               $handlerName = 'socketError' . self::convertToClassName($this->translateSocketErrorCodeToName($errorCode)) . 'Handler';
 
                // Is the call-back method there?
                if (!method_exists($this, $handlerName)) {