X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=application%2Fship-simu%2Fmain%2Fpersonell%2Fcompany%2Fclass_CompanyEmployee.php;h=edcc3d4aaaded404d868ee277d28f6a40aebd179;hp=ae73132da98c3da3cd41ed5b5c820c4d90291f0d;hb=b3e47fb693fb8d40868158b0192b3392b309d97a;hpb=42b66268af2c7d8872aca3e2fffb76d60954e9f5 diff --git a/application/ship-simu/main/personell/company/class_CompanyEmployee.php b/application/ship-simu/main/personell/company/class_CompanyEmployee.php index ae73132..edcc3d4 100644 --- a/application/ship-simu/main/personell/company/class_CompanyEmployee.php +++ b/application/ship-simu/main/personell/company/class_CompanyEmployee.php @@ -6,7 +6,7 @@ * @version 0.0.0 * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version - * @link http://www.ship-simu.org + * @link http://www.ship-simu.org * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -19,30 +19,22 @@ * 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 . + * along with this program. If not, see . */ class CompanyEmployee extends SimulatorPersonell { // Employeee list private $employeeList = null; // Constructor - private function __construct () { + protected function __construct () { // Call parent constructor - parent::constructor(__CLASS__); - - // Debug message - if ((((defined('DEBUG_COMPANY_EMPLOYEE')) && (defined('DEBUG_PERSONELL'))) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) { - $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.
\n", - __CLASS__, - __LINE__ - )); - } + parent::__construct(__CLASS__); // Set description - $this->setPartDescr("Firmenangestellte(r)"); + $this->setObjectDescription("Firmenangestellte(r)"); // Create unique ID - $this->createUniqueID(); + $this->generateUniqueId(); // Clean up a little $this->removeSystemArray(); @@ -55,7 +47,7 @@ class CompanyEmployee extends SimulatorPersonell { // Debug message if (((defined('DEBUG_COMPANY_EMPLOYEE')) && (defined('DEBUG_PERSONELL'))) || (defined('DEBUG_ALL'))) { - $personellInstance->getDebugInstance()->output(sprintf("[%s:%d] Der/Die Angestellte %s %s wird angelegt.
\n", + $personellInstance->getDebugInstance()->output(sprintf("[%s:%d] Der/Die Angestellte %s %s wird angelegt.", __CLASS__, __LINE__, $surname, @@ -94,28 +86,8 @@ class CompanyEmployee extends SimulatorPersonell { // Remove the employee list private function removeEmployeeList () { - if (((defined('DEBUG_COMPANY_EMPLOYEE')) && (defined('DEBUG_PERSONELL'))) || (defined('DEBUG_ALL'))) { - $this->getDebugInstance()->output(sprintf("[%s:%d] Angestellten-List entfernt.
\n", - __CLASS__, - __LINE__ - )); - } unset($this->employeeList); } - - /** - * Call parent method - */ - public function saveObjectToDatabase () { - parent::saveObjectToDatabase(); - } - - /** - * Limits this object with an ObjectLimits instance - */ - public function limitObject (ObjectLimits $limitInstance) { - parent::limitObject($limitInstance); - } } // [EOF]