]> git.mxchange.org Git - shipsimu.git/blobdiff - ship-simu/inc/classes/main/class_FrameworkArrayObject.php
Initial import of current development status
[shipsimu.git] / ship-simu / inc / classes / main / class_FrameworkArrayObject.php
diff --git a/ship-simu/inc/classes/main/class_FrameworkArrayObject.php b/ship-simu/inc/classes/main/class_FrameworkArrayObject.php
new file mode 100644 (file)
index 0000000..89f6b7e
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+/**
+ * Class for saving arrays as an object. We need this little extension for
+ * some common methods used in the whole application. Please see below if you
+ * need more details.
+ */
+class FrameworkArrayObject extends ArrayObject {
+       /**
+        * Constructor for smooth coding style ;-)
+        *
+        * @param               $class  The class's real name
+        * @return      void
+        */
+       public function constructor ($class) {
+               // $class will be ignored for backward compatiblity
+       }
+
+       /**
+        * Get real class' name back
+        *
+        * @return      $realClass      The class' real name
+        */
+       public function __toString () {
+               return get_class($this);
+       }
+}
+
+// [EOF]
+?>