]> git.mxchange.org Git - shipsimu.git/blob - application/ship-simu/main/structures/extended/decks/class_BaseDeck.php
getter, setter are all final; several code clean-ups
[shipsimu.git] / application / ship-simu / main / structures / extended / decks / class_BaseDeck.php
1 <?php
2 // General (base) deck
3 class BaseDeck extends BaseDeckStructure {
4         /**
5          * Constructor for cargo decks in general
6          */
7         private function __construct ($class) {
8                 // Call parent constructor
9                 parent::constructor($class);
10
11                 // Debub message
12                 if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
13                         __CLASS__,
14                         __LINE__
15                 ));
16
17                 // Set description
18                 $this->setPartDescr("Allgemeines Deck");
19         }
20
21         /**
22          * Calls the private constructor
23          *
24          * @param       $class  The class' name
25          * @return      void
26          */
27         public function constructor ($class) {
28                 $this->__construct($class);
29         }
30
31         /**
32          * Stub!
33          */
34         public function saveObjectToDatabase () {
35                 $this->getDebugInstance()->output(sprintf("[%s:] Stub <strong>%s</strong> erreicht.",
36                         $this->__toString(),
37                         __FUNCTION__
38                 ));
39         }
40 }
41
42 // [EOF]
43 ?>