*
* @param $amountPersonell Number of personell we shall
* generate
- * @return $personellInstance An instance of this object with a
+ * @return $personellInstance An instance of this object with a
* list of personells
*/
public static function createSimulatorPersonell ($amountPersonell) {
// Get a new instance
$personellInstance = new SimulatorPersonell();
- // Generate unique ID number
- $personellInstance->createUniqueID();
-
// Debug message
if ((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) $personellInstance->getDebugInstance()->output(sprintf("[%s:%d] Es werden <strong>%d</strong> Personal bereitgestellt.<br />\n",
__CLASS__,
// Create requested amount of personell
for ($idx = 0; $idx < $amountPersonell; $idx++) {
- $personellInstance->addPersonell();
+ $personellInstance->addRandomPersonell();
}
// Debug message
* list from an existing database backend
*
* @param $idNumber The ID number (only right part) of the list
- * @return $personellInstance An instance of
+ * @return $personellInstance An instance of
* @throws InvalidIDFormatException If the given id number
* $idNumber is invalid
* @throws NullPointerException If a null pointer (instance)
}
// Add new personell object to our list
- public function addPersonell () {
+ public function addRandomPersonell () {
// Gender list...
$genders = array('M', 'F');
*
* @return $count Amount of unemployed personell
*/
- public function getAllUnemployed () {
+ public final function getAllUnemployed () {
if ((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Es werden alle erwerbslosen Personen gesucht.<br />\n",
__CLASS__,
__LINE__
* @return void
*/
public function saveObjectToDatabase () {
- // Get the database
+ // Get the database
$dbInstance = $this->getDatabaseInstance();
// Prepare the limitation object. We just need the personellList array object.
*
* @return $personellList The list of all personells
*/
- public function getPersonellList () {
+ public final function getPersonellList () {
return $this->personellList;
}