]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/class_BasePersonell.php
Crypto helper and RNG added (weak!)
[shipsimu.git] / application / ship-simu / main / class_BasePersonell.php
index d77fbaa05d9ff95e78bd3ac385beef1e6e05cd14..5eb553bc8c2048b342532cc973c1e73041d7a732 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 BasePersonell extends BaseFrameworkSystem implements Personellizer {
        // Maximum/minimum age
@@ -48,20 +48,12 @@ class BasePersonell extends BaseFrameworkSystem implements Personellizer {
        private $salary     = 0.00;
 
        // Constructor
-       private function __construct ($class) {
+       protected function __construct ($class) {
                // Call parent constructor
-               parent::constructor($class);
-
-               // Debug message
-               if ((defined('DEBUG_PERSONELL')) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output("[PersonellBase:] Konstruktor erreicht.<br />\n");
+               parent::__construct($class);
 
                // Set description
-               $this->setPartDescr("Personal");
-       }
-
-       // Calls the constructor
-       public function constructor ($class) {
-               $this->__construct($class);
+               $this->setObjectDescription("Personal");
        }
 
        // Remove min/max ages