Method constructor() removed, several small fixes
[shipsimu.git] / application / ship-simu / main / structures / extended / cabines / ship / class_LowCabin.php
index ad0bc84ec9630575588bb82f0919f76ea4f5e390..46e9880cfe5372faec1ee46b0e8d25d7227a2bf1 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 LowCabin extends BaseCabin implements TradeableItem, ConstructableShipPart {
        // Konstruktor
-       private function __construct () {
+       protected function __construct () {
                // Call parent constructor
-               parent::constructor(__CLASS__);
+               parent::__construct(__CLASS__);
 
                // Debug message
                if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
@@ -34,7 +34,7 @@ class LowCabin extends BaseCabin implements TradeableItem, ConstructableShipPart
                ));
 
                // Set description
-               $this->setPartDescr("2Star-Class-Kabine");
+               $this->setObjectDescription("2Star-Class-Kabine");
 
                // Generate unique ID number
                $this->createUniqueID();