Directory prepared, missing variable fixed:
[core.git] / inc / config / class_FrameworkConfiguration.php
index 65d742b5e22fbad84204ec309ab9dc079e0ba8a7..c69bd5ef892a33c12572b4b63aae00c7d28b937e 100644 (file)
@@ -65,7 +65,7 @@ class FrameworkConfiguration implements Registerable {
         *
         * @return      $configInstance An instance of this class
         */
-       public final static function getInstance () {
+       public static final function getInstance () {
                // is the instance there?
                if (is_null(self::$configInstance))  {
                        // Create a config instance
@@ -318,7 +318,26 @@ class FrameworkConfiguration implements Registerable {
        public function hashCode () {
                return crc32($this->__toString());
        }
+
+       /**
+        * Checks wether an object equals this object. You should overwrite this
+        * method to implement own equality checks
+        *
+        * @param       $objectInstance         An instance of a FrameworkInterface object
+        * @return      $equals                         Wether both objects equals
+        */
+       public function equals (FrameworkInterface $objectInstance) {
+               // Now test it
+               $equals = ((
+                       $this->__toString() == $objectInstance->__toString()
+               ) && (
+                       $this->hashCode() == $objectInstance->hashCode()
+               ));
+
+               // Return the result
+               return $equals;
+       }
 }
 
-//
+// [EOF]
 ?>