Method constructor() removed, several small fixes
[shipsimu.git] / application / ship-simu / main / structures / extended / cabines / class_BaseCabin.php
index d0090311c72c001bb40b66200c198574237eabad..43e8a2010824a0ee807d1b71b491cfc3bd53ea90 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 BaseCabin extends BaseCabinStructure {
        // Konstruktor
-       private function __construct ($class) {
+       protected function __construct ($class) {
                // Call parent constructor
-               parent::constructor($class);
+               parent::__construct($class);
 
                // Debug message
                if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
@@ -36,17 +36,7 @@ class BaseCabin extends BaseCabinStructure {
                }
 
                // Set description
-               $this->setPartDescr("Kabine");
-       }
-
-       /**
-        * Calls the private constructor
-        *
-        * @param       $class  The class' name
-        * @return      void
-        */
-       public function constructor ($class) {
-               $this->__construct($class);
+               $this->setObjectDescription("Kabine");
        }
 
        // Is this a cabin?