Directory prepared, missing variable fixed:
[core.git] / inc / classes / main / class_BaseFrameworkSystem.php
index d2ae75e2ccc03fb4de5b29683cf58f990d66d836..9b153224b9a9398514f4364023f56f2642e7472c 100644 (file)
@@ -113,10 +113,20 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $parserInstance = null;
 
+       /**
+        * A ProtocolHandler instance
+        */
+       private $protocolInstance = null;
+
+       /**
+        * A database wrapper instance
+        */
+       private $databaseInstance = null;
+
        /**
         * The real class name
         */
-       private $realClass      = 'BaseFrameworkSystem';
+       private $realClass = 'BaseFrameworkSystem';
 
        /**
         * Thousands seperator
@@ -133,6 +143,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $socketResource = false;
 
+       /**
+        * Package data
+        */
+       private $packageData = array();
+
        /***********************
         * Exception codes.... *
         ***********************/
@@ -360,7 +375,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        /**
         * Setter for resolver instance
         *
-        * @param       $resolverInstance               Instance of a command resolver class
+        * @param       $resolverInstance       Instance of a command resolver class
         * @return      void
         */
        public final function setResolverInstance (Resolver $resolverInstance) {
@@ -370,7 +385,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        /**
         * Getter for resolver instance
         *
-        * @return      $resolverInstance               Instance of a command resolver class
+        * @return      $resolverInstance       Instance of a command resolver class
         */
        public final function getResolverInstance () {
                return $this->resolverInstance;
@@ -443,8 +458,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        /**
         * Setter for database instance
         *
-        * @param               $dbInstance     The instance for the database connection
-        *                                      (forced DatabaseConnection)
+        * @param               $dbInstance     The instance for the database connection (forced DatabaseConnection)
         * @return      void
         */
        public final function setDatabaseInstance (DatabaseConnection $dbInstance) {
@@ -547,7 +561,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         *
         * @return      $realClass The name of the real class (not BaseFrameworkSystem)
         */
-       public final function __toString () {
+       public function __toString () {
                return $this->realClass;
        }
 
@@ -581,7 +595,18 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                ));
 
                // Return the result
-               return $result;
+               return $equals;
+       }
+
+       /**
+        * Generates a generic hash code of this class. You should really overwrite
+        * this method with your own hash code generator code. But keep KISS in mind.
+        *
+        * @return      $hashCode       A generic hash code respresenting this whole class
+        */
+       public function hashCode () {
+               // Simple hash code
+               return crc32($this->__toString());
        }
 
        /**
@@ -1133,17 +1158,6 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                }
        }
 
-       /**
-        * Generates a generic hash code of this class. You should really overwrite
-        * this method with your own hash code generator code. But keep KISS in mind.
-        *
-        * @return      $hashCode       A generic hash code respresenting this whole class
-        */
-       public function hashCode () {
-               // Simple hash code
-               return crc32($this->__toString());
-       }
-
        /**
         * Checks wether the given PHP extension is loaded
         *
@@ -1350,6 +1364,44 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                return $this->parserInstance;
        }
 
+       /**
+        * Setter for ProtocolHandler instance
+        *
+        * @param       $protocolInstance       An instance of an ProtocolHandler
+        * @return      void
+        */
+       public final function setProtocolInstance (ProtocolHandler $protocolInstance) {
+               $this->protocolInstance = $protocolInstance;
+       }
+
+       /**
+        * Getter for ProtocolHandler instance
+        *
+        * @return      $protocolInstance       An instance of an ProtocolHandler
+        */
+       public final function getProtocolInstance () {
+               return $this->protocolInstance;
+       }
+
+       /**
+        * Setter for BaseDatabaseWrapper instance
+        *
+        * @param       $wrapperInstance        An instance of an BaseDatabaseWrapper
+        * @return      void
+        */
+       public final function setWrapperInstance (BaseDatabaseWrapper $wrapperInstance) {
+               $this->wrapperInstance = $wrapperInstance;
+       }
+
+       /**
+        * Getter for BaseDatabaseWrapper instance
+        *
+        * @return      $wrapperInstance        An instance of an BaseDatabaseWrapper
+        */
+       public final function getWrapperInstance () {
+               return $this->wrapperInstance;
+       }
+
        /**
         * Setter for socket resource
         *
@@ -1368,6 +1420,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        public function getSocketResource () {
                return $this->socketResource;
        }
+
+       /**
+        * Setter for raw package Data
+        *
+        * @param       $packageData    Raw package Data
+        * @return      void
+        */
+       public final function setPackageData (array $packageData) {
+               $this->packageData = $packageData;
+       }
+
+       /**
+        * Getter for raw package Data
+        *
+        * @return      $packageData    Raw package Data
+        */
+       public function getPackageData () {
+               return $this->packageData;
+       }
 }
 
 // [EOF]