]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/constructions/harbors/class_Harbor.php
Method constructor() removed, several small fixes
[shipsimu.git] / application / ship-simu / main / constructions / harbors / class_Harbor.php
index 7c1ce55c1f8e0aa2a3630be356f9e22887798df4..e414118b714c4811de8f38a208469c5ad252a447 100644 (file)
@@ -19,7 +19,7 @@
  * 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 Harbor extends BaseConstruction {
        // Namen des Hafens (z.B. Hamburger Hafen)
@@ -35,15 +35,15 @@ class Harbor extends BaseConstruction {
        private $shipyardList = null;
 
        // Constructor
-       private function __construct () {
+       protected function __construct () {
                // Call parent constructor
-               parent::constructor(__CLASS__);
+               parent::__construct(__CLASS__);
 
                // Debug message
                if (((defined('DEBUG_HARBOR')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output("[Harbor:] Konstruktor erreicht.<br />\n");
 
                // Set description
-               $this->setPartDescr("Hafen");
+               $this->setObjectDescription("Hafen");
 
                // Generate unique ID number
                $this->createUniqueID();