Method constructor() removed, several small fixes
[shipsimu.git] / application / ship-simu / main / structures / extended / class_BaseDeckStructure.php
index e9476731a0248a7e88917e7618dd7e82744e4288..53f6a9cfdea08b63364c63872414028b435acb83 100644 (file)
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 class BaseDeckStructure extends BaseStructure {
        // Anzahl Decks
        private $numDecks = 0;
 
        // Konstruktor
-       private function __construct ($class) {
+       protected function __construct ($class) {
                // Call parent constructor
-               parent::constructor($class);
+               parent::__construct($class);
 
                // Debug message
                if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
@@ -39,17 +39,7 @@ class BaseDeckStructure extends BaseStructure {
                }
 
                // Set description
-               $this->setPartDescr("Deckstruktur");
-       }
-
-       /**
-        * Calls the private constructor
-        *
-        * @param       $class  The class' name
-        * @return      void
-        */
-       public function constructor ($class) {
-               $this->__construct($class);
+               $this->setObjectDescription("Deckstruktur");
        }
 
        // Deckstruktur dem Schiff hinzufuegen
@@ -57,7 +47,7 @@ class BaseDeckStructure extends BaseStructure {
                if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das Deck <strong>%s</strong> wird f&uuml;r das Schiff <strong>%s</strong> konstruiert.<br />\n",
                        __CLASS__,
                        __LINE__,
-                       $deckInstance->getPartDescr(),
+                       $deckInstance->getObjectDescription(),
                        $shipInstance->getShipName()
                ));
 
@@ -71,7 +61,7 @@ class BaseDeckStructure extends BaseStructure {
                if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das Deck <strong>%s</strong> wurde in das Schiff <strong>%s</strong> eingebaut.<br />\n",
                        __CLASS__,
                        __LINE__,
-                       $deckInstance->getPartDescr(),
+                       $deckInstance->getObjectDescription(),
                        $shipInstance->getShipName()
                ));
        }