Method constructor() removed, several small fixes
[shipsimu.git] / application / ship-simu / main / constructions / terminals / class_Terminal.php
index aa38ee739acf709d5d0ab5de85e1026ba5a6a849..6ec76c22584cb7be5ff0b22090c3ca46f6f35262 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 Terminal extends BaseConstruction {
        // Zugewiesener Hafen
        private $harborInstance = null;
 
        // Konstruktor
-       private function __construct () {
+       protected function __construct () {
                if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
                        $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
                                __CLASS__,
@@ -35,10 +35,10 @@ class Terminal extends BaseConstruction {
                }
 
                // Call parent constructor
-               parent::constructor(__CLASS__);
+               parent::__construct(__CLASS__);
 
                // Set description
-               $this->setPartDescr("Anlegebr&uuml;cke");
+               $this->setObjectDescription("Anlegebr&uuml;cke");
 
                // Generate unique ID number
                $this->createUniqueID();