e268397149f78c79655b6053c3f50a8beeef057f
[shipsimu.git] / 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                 // Call parent constructor
20                 parent::constructor(__CLASS__);
21
22                 // Set description
23                 $this->setPartDescr("Liegeplatz");
24
25                 // Generate unique ID number
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 ?>