Initial import of current development status
[shipsimu.git] / ship-simu / application / ship-simu / main / constructions / berths / class_Berth.php
1 <?php
2 // Die Liegeplatz-Klasse
3 class Berth extends BaseConstruction {
4         // Durchlaufende Nummer der Liegeplaetze
5         private $berthIndex = 0;
6
7         // Zugewiesener Hafen
8         private $harborInstance = null;
9
10         // Konstruktor
11         private function __construct () {
12                 if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
13                         $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
14                                 __CLASS__,
15                                 __LINE__
16                         ));
17                 }
18
19                 // Eltern-Konstruktor aufrufen
20                 parent::constructor(__CLASS__);
21
22                 // Beschreibung setzen
23                 $this->setPartDescr("Liegeplatz");
24
25                 // Unique-ID erzeugen
26                 $this->createUniqueID();
27         }
28
29         /**
30          * Stub!
31          */
32         public function saveObjectToDatabase () {
33                 $this->getDebugInstance()->output(sprintf("[%s:] Stub <strong>%s</strong> erreicht.",
34                         $this->__toString(),
35                         __FUNCTION__
36                 ));
37         }
38
39         /**
40          * Limits this object with an ObjectLimits instance
41          */
42         public function limitObject (ObjectLimits $limitInstance) {
43                 ApplicationEntryPoint::app_die("".__METHOD__." reached! Stub!");
44         }
45 }
46
47 // [EOF]
48 ?>