*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software
+ * @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
*
$personellInstance = new SimulatorPersonell();
// Debug message
- if ((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) $personellInstance->getDebugInstance()->output(sprintf("[%s:%d] Es werden <strong>%d</strong> Personal bereitgestellt.",
+ if ((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) $personellInstance->debugOutput(sprintf("[%s:%d] Es werden <strong>%d</strong> Personal bereitgestellt.",
__CLASS__,
__LINE__,
$amountPersonell
}
// Debug message
- if ((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) $personellInstance->getDebugInstance()->output(sprintf("[%s:%d] <strong>%d</strong> Personal bereitgestellt.",
+ if ((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) $personellInstance->debugOutput(sprintf("[%s:%d] <strong>%d</strong> Personal bereitgestellt.",
__CLASS__,
__LINE__,
$amountPersonell
// Add new personell object to our list
public function addRandomPersonell () {
// Gender list...
- $genders = array('M', 'F');
+ $genders = array("M", "F");
// Create new personell members
$personellInstance = new SimulatorPersonell();
// The same (last) conditions?
if (($serialized == $this->cacheCond) && (!is_null($this->cacheCond))) {
- if ((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Gecachte Liste wird verwendet.",
+ if ((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) $this->debugOutput(sprintf("[%s:%d] Gecachte Liste wird verwendet.",
__CLASS__,
__LINE__
));
}
// Output debug message
- if ((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Personalliste wird nach Kriterien durchsucht...",
+ if ((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) $this->debugOutput(sprintf("[%s:%d] Personalliste wird nach Kriterien durchsucht...",
__CLASS__,
__LINE__
));
$this->setCacheCond($serialized);
// Create cached list
- $this->setAllCacheList(new FrameworkArrayObject("FakedCacheList"));
+ $this->setAllCacheList(new FrameworkArrayObject('FakedCacheList'));
// Search all unemployed personells
for ($idx = $this->personellList->getIterator(); $idx->valid(); $idx->next()) {
* @throws ContainerMaybeDamagedException If the container item
* is missing the indexes
* 'name' and/or 'value'
- * @see SerializationContainer A special container class which
- * helps storing only some attributes
- * of a class.
*/
public function loadPersonellList ($idNumber) {
// Cleared because old code