]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/class_FrameworkArrayObject.php
Fake class names added, insertDataSet() stub added, dataset criteria added
[shipsimu.git] / inc / classes / main / class_FrameworkArrayObject.php
index e73f8a8d8c9b68c21c6205ae24680f132b8aedbd..6543d45f09c36863f4adba1351c15b0f16a6f977 100644 (file)
@@ -5,9 +5,10 @@
  * need more details.
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
- * @version            0.0
+ * @version            0.0.0
  * @copyright  Copyright(c) 2007, 2008 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
+ * @link               http://www.ship-simu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  */
 class FrameworkArrayObject extends ArrayObject {
        /**
-        * Constructor for smooth coding style ;-)
+        * Real class name
+        */
+       private $realClass = "";
+
+       /**
+        * Public constructor for setting real class name
         *
-        * @param               $class  The class's real name
+        * @param       $className      Real class name
         * @return      void
         */
-       public function constructor ($class) {
-               // $class will be ignored for backward compatiblity
+       public function __construct ($className) {
+               $this->realClass = (string) $className;
        }
 
        /**
@@ -39,7 +45,7 @@ class FrameworkArrayObject extends ArrayObject {
         * @return      $realClass      The class' real name
         */
        public function __toString () {
-               return get_class($this);
+               return $this->realClass;
        }
 }