* 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 ApplicationHelper extends BaseFrameworkSystem implements ManageableApplication {
/**
private static $thisInstance = null;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
- $this->setPartDescr("Application-Helper");
+ $this->setObjectDescription("Application-Helper");
// Create an unique ID
$this->createUniqueID();
* 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 ApplicationSelector extends BaseFrameworkSystem {
/**
*
* @return void
*/
- private function __construct() {
+ protected function __construct() {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
- $this->setPartDescr("Applikationswechsler");
+ $this->setObjectDescription("Applikationswechsler");
// Create unique ID number
$this->createUniqueID();
* 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/>.
*/
// [EOF]
* 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/>.
*/
// Set the new handler
* 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/>.
*/
//
//
* 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/>.
*/
// Is the application instance set?
* 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/>.
*/
// Get the application helper instance
* 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 ApplicationHelper extends BaseFrameworkSystem implements ManageableApplication {
/**
private static $thisInstance = null;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
- $this->setPartDescr("Application-Helper");
+ $this->setObjectDescription("Application-Helper");
// Create an unique ID
$this->createUniqueID();
* 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/>.
*/
// Reederei-Objekt debuggen
* 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/>.
*/
// Set the new handler
* 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 BirthdayInvalidException extends FrameworkException {
public function __construct (array $birthArray, $code) {
* 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 CabinShipMismatchException extends FrameworkException {
}
* 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 ContractAllreadySignedException extends FrameworkException {
public function __construct (array $classArray, $code) {
* 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 ContractPartnerMismatchException extends FrameworkException {
public function __construct (array $classArray, $code) {
* 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 DeckShipMismatchException extends FrameworkException {
}
* 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 EmptyStructuresListException extends FrameworkException {
public function __construct (BaseFrameworkSystem $class, $code) {
* 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 InvalidContractPartnerException extends FrameworkException {
public function __construct (BaseFrameworkSystem $class, $code) {
// Add a message around the missing class
$message = sprintf("[%s:] <u>%s</u> ist kein gütiger Vertragspartner.",
$class->__toString(),
- $class->getPartDescr()
+ $class->getObjectDescription()
);
// Call parent constructor
* 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 InvalidIDFormatException extends FrameworkException {
public function __construct (BaseFrameworkSystem $class, $code) {
* 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 ItemNotInPriceListException extends FrameworkException {
public function __construct (BaseFrameworkSystem $class, $code) {
// Add a message around the missing class
$message = sprintf("[Merchant:] Preis für den Artikel <u>%s</u> <em><u>%s</u></em> nicht gefunden.",
$class->__toString(),
- $class->getPartDescr()
+ $class->getObjectDescription()
);
// Call parent constructor
* 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 ItemNotTradeableException extends FrameworkException {
public function __construct (array $classArray, $code) {
// Add a message around the missing class
$message = sprintf("[%s:] <u>%s</u> ist nicht handelbar!",
$classArray[0]->__toString(),
- $classArray[1]->getPartDescr()
+ $classArray[1]->getObjectDescription()
);
// Call parent constructor
* 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 MissingSimulatorIDException extends FrameworkException {
public function __construct (array $classArray, $code) {
* 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 MotorShipMismatchException extends FrameworkException {
}
* 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 NoShipyardsConstructedException extends FrameworkException {
public function __construct (BaseFrameworkSystem $class, $code) {
* 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 PersonellListAlreadyCreatedException extends FrameworkException {
public function __construct (BaseFrameworkSystem $class, $code) {
* 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 RoomShipMismatchException extends FrameworkException {
}
* 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 ShipNotConstructedException extends FrameworkException {
}
* 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 ShipPartNotConstructableException extends FrameworkException {
public function __construct (array $partArray, $code) {
* 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 StructureShipMismatchException extends FrameworkException {
}
* 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 StructuresOutOfBoundsException extends FrameworkException {
public function __construct ($idx, $code) {
* 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 ToMuchEmployeesException extends FrameworkException {
public function __construct ($amountArray, $code) {
* 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 TotalPriceNotCalculatedException extends FrameworkException {
public function __construct (BaseFrameworkSystem $class, $code) {
* 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 UnsupportedLimitationPartException extends FrameworkException {
public function __construct ($str, $code) {
* 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 WrongGenderSpecifiedException extends FrameworkException {
public function __construct ($gender, $code) {
* 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/>.
*/
// Get an instance of the helper
* 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/>.
*/
interface ConstructableShip extends FrameworkInterface {
}
* 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/>.
*/
interface ConstructableShipPart extends FrameworkInterface {
}
* 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/>.
*/
interface ContractPartner extends FrameworkInterface {
/**
* 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/>.
*/
interface Customer extends FrameworkInterface {
/**
* 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/>.
*/
interface Personellizer extends FrameworkInterface {
///////////////////////
* 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/>.
*/
interface SignableContract extends FrameworkInterface {
// Sign the contract
* 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/>.
*/
interface TradeableItem extends FrameworkInterface {
/**
* 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/>.
*/
// Is the application instance set?
* 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
private $salary = 0.00;
// Constructor
- private function __construct ($class) {
+ protected function __construct ($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Debug message
if ((defined('DEBUG_PERSONELL')) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output("[PersonellBase:] Konstruktor erreicht.<br />\n");
// Set description
- $this->setPartDescr("Personal");
- }
-
- // Calls the constructor
- public function constructor ($class) {
- $this->__construct($class);
+ $this->setObjectDescription("Personal");
}
// Remove min/max ages
* 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 BaseSimulator extends BaseFrameworkSystem {
// Schiffsteilinstanz
);
// Konstruktor
- private function __construct ($class) {
+ protected function __construct ($class) {
// Call highest constructor
- parent::constructor($class);
+ parent::__construct($class);
if ((defined('DEBUG_CORE')) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
$this->__toString()
));
// Set part description and class name
- $this->setPartDescr("Simulator-Basis-Einheit");
+ $this->setObjectDescription("Simulator-Basis-Einheit");
// Clean up a little, dies sollte ganz zum Schluss erfolgen!
$this->removeResizeFactorArray();
$this->removeCurrShip();
}
- // Public constructor
- public function constructor ($class) {
- // Call real constructor
- $this->__construct($class);
- }
-
- // Magic __isset method
- private function __isset ($var) {
- if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Checking <strong>%s</strong> in class.<br />\n",
- $this->__toString(), $var
- ));
- return isset($this->$var);
- }
-
- // Magic __unset method
- private function __unset($var) {
- if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Removing <strong>%s</strong> from class.<br />\n",
- $this->__toString(), $var
- ));
- unset($this->$var);
- }
-
// Setter-Methode fuer Laenge
public final function setLength ($length) {
if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] <strong>%dm</strong> Länge gesetzt.<br />\n",
if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Maschinenraum mit Motor <strong>%s</strong> wird fuer das Schiff <strong>%s</strong> konstruiert.<br />\n",
$this->__toString(),
- $this->getCurrPart()->getPartDescr(),
+ $this->getCurrPart()->getObjectDescription(),
$this->currShip->getShipName()
));
// Berechnungen fuer umliegendes Objekt anpassen
if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Das Schiffsteil <strong>%s</strong> vom Typ <strong>%s</strong> passt in das Schiff <strong>%s</strong> hinein.<br />\n",
$this->__toString(),
- $this->getCurrPart()->getPartDescr(),
+ $this->getCurrPart()->getObjectDescription(),
$this->getCurrPart()->__toString(),
$this->currShip->getShipName()
));
// Das passt auch, dann Werte setzen und Motor-Instanz merken
if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Das Schiffsteil <strong>%s</strong> passt in das Schiff <strong>%s</strong> hinein.<br />\n",
$this->__toString(),
- $this->getPartDescr(),
+ $this->getObjectDescription(),
$this->currShip->getShipName()
));
$this->setWidth($this->newWidth);
// Passt nicht! Also wieder Exception werfen...
throw new StructureShipMismatchException(sprintf("[%s:] Das Schiffsteil <strong>%s</strong> vom Typ <strong>%s</strong> ist zu gross für das Schiff!",
$this->getCurrPart()->__toString(),
- $this->getCurrPart()->getPartDescr(),
+ $this->getCurrPart()->getObjectDescription(),
$this->getCurrPart()->__toString()
), 2);
}
// Debug-Meldung ausgeben
if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] Schiffsteil <strong>%s</strong> gefunden.<br />\n",
$this->getCurrPart()->realClass,
- $this->getCurrPart()->getPartDescr()
+ $this->getCurrPart()->getObjectDescription()
));
// Schiffsteil-Instanz setzen
// Exception werfen!
throw new StructureShipMismatchException(sprintf("[%s:] Das Schiffsteil <u>%s</u> vom Typ <u>%s</u> passt nicht in das Schiff!",
$this->getCurrPart()->realClass,
- $this->getCurrPart()->getPartDescr(),
+ $this->getCurrPart()->getObjectDescription(),
$this->getCurrPart()->__toString()
), 1);
}
public function extractDimensions ($dim) {
if (defined('DEBUG_CORE')) $this->getDebugInstance()->output(sprintf("[%s:] extractDimensions erreicht für <strong>%s</strong>.<br />\n",
$this->__toString(),
- $this->getPartDescr()
+ $this->getObjectDescription()
));
// Abmasse setzen
* 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 Merchant extends BaseFrameworkSystem {
// Name des Haendlers
private $harborInstance = null;
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_MERCHANT')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Händler");
+ $this->setObjectDescription("Händler");
// Generate unique ID number
$this->createUniqueID();
__LINE__,
$this->getMerchantName(),
$itemInstance->__toString(),
- $itemInstance->getPartDescr(),
+ $itemInstance->getObjectDescription(),
$this->formatCurrency($price)
));
* 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 WorksContract extends BaseFrameworkSystem implements SignableContract {
// Zukuenftiger Schiffsname
private $merchantInstance = null;
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Bauvertrag");
+ $this->setObjectDescription("Bauvertrag");
// Unique-ID generieren
$this->createUniqueID();
__CLASS__,
__LINE__,
$shipName,
- $partnerInstance->getPartDescr(),
+ $partnerInstance->getObjectDescription(),
$partnerInstance->getCompanyName()
));
if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%s</strong> kostet <strong>%s</strong>.<br />\n",
__CLASS__,
__LINE__,
- $instance->getPartDescr(),
+ $instance->getObjectDescription(),
$this->getMerchantInstance()->formatCurrency($price)
));
if ((defined('DEBUG_CONTRACT')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%s</strong> wurde in den Bauvertrag aufgenommen.<br />\n",
__CLASS__,
__LINE__,
- $instance->getPartDescr()
+ $instance->getObjectDescription()
));
}
$this->getDebugInstance()->output(sprintf("[%s:%d] Die <strong>%s</strong> <em><strong>%s</strong></em> stimmt einem Bauvertrag über das <strong>%s</strong> <em><strong>%s</strong></em> zu.<br />\n",
__CLASS__,
__LINE__,
- $partnerInstance->getPartDescr(),
+ $partnerInstance->getObjectDescription(),
$partnerInstance->getCompanyName(),
- $this->getShipInstance()->getPartDescr(),
+ $this->getShipInstance()->getObjectDescription(),
$this->getShipInstance()->getShipName()
));
} else {
$this->getDebugInstance()->output(sprintf("[%s:%d] Die <strong>%s</strong> <em><strong>%s</strong></em> geht mit der <strong>%s</strong> <em><strong>%s</strong></em> einen Bauvertrag über das <strong>%s</strong> <em><strong>%s</strong></em> ein.<br />\n",
__CLASS__,
__LINE__,
- $partnerInstance->getPartDescr(),
+ $partnerInstance->getObjectDescription(),
$partnerInstance->getCompanyName(),
- $partyInstance->getPartDescr(),
+ $partyInstance->getObjectDescription(),
$partyInstance->getCompanyName(),
- $this->getShipInstance()->getPartDescr(),
+ $this->getShipInstance()->getObjectDescription(),
$this->getShipInstance()->getShipName()
));
}
* 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 ShippingCompany extends BaseSimulator implements Customer, ContractPartner {
/**
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_COMPANY')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Reederei");
+ $this->setObjectDescription("Reederei");
// Generate unique ID number
$this->createUniqueID();
$employeeInstance->getSurname(),
$employeeInstance->getFamily(),
$this->getCompanyName(),
- $employeeInstance->getPartDescr(),
+ $employeeInstance->getObjectDescription(),
$this->formatCurrency($employeeInstance->getSalary())
));
$this->employeeList->append($employeeInstance);
// Make this person employed and give him some money to work
$employee->setEmployed(true);
- $employee->setPartDescr($dummy->getPartDescr());
+ $employee->setObjectDescription($dummy->getObjectDescription());
$employee->setRealClass($dummy->__toString());
$employee->increaseSalary((mt_rand(7, 14) * 100)); // Are 700 to 1400 EUR for the begin okay?
__CLASS__,
__LINE__,
$this->getCompanyName(),
- $shipInstance->getPartDescr()
+ $shipInstance->getObjectDescription()
));
// Iterate shipyard list
__LINE__,
$this->getCompanyName(),
$contractInstance->getShipName(),
- $shipInstance->getPartDescr()
+ $shipInstance->getObjectDescription()
));
// Now check if the ship type is in any list and return the result
__CLASS__,
__LINE__,
$this->getCompanyName(),
- $contractInstance->getShipInstance()->getPartDescr(),
+ $contractInstance->getShipInstance()->getObjectDescription(),
$contractInstance->getShipInstance()->getShipName()
));
$this->contractList->append($contractInstance);
__CLASS__,
__LINE__,
$this->getCompanyName(),
- $contractInstance->getShipInstance()->getPartDescr(),
+ $contractInstance->getShipInstance()->getObjectDescription(),
$contractInstance->getShipInstance()->getShipName()
));
} else {
__CLASS__,
__LINE__,
$this->getCompanyName(),
- $contractInstance->getShipInstance()->getPartDescr(),
+ $contractInstance->getShipInstance()->getObjectDescription(),
$contractInstance->getShipInstance()->getShipName(),
$partnerInstance->getCompanyName()
));
* 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 Berth extends BaseConstruction {
// Durchlaufende Nummer der Liegeplaetze
private $harborInstance = null;
// Konstruktor
- private function __construct () {
+ protected function __construct () {
if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
$this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
__CLASS__,
}
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
- $this->setPartDescr("Liegeplatz");
+ $this->setObjectDescription("Liegeplatz");
// Generate unique ID number
$this->createUniqueID();
* 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 BaseConstruction extends BaseSimulator {
// Tiefgang fuer z.B. Trockdocks
private $draught = 0;
// Konstruktor
- private function __construct ($class) {
+ protected function __construct ($class) {
// Eltern-Konstrutor aufrufen
- parent::constructor($class);
+ parent::__construct($class);
// Debug message
if ((defined('DEBUG_CORE')) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
));
// Set description
- $this->setPartDescr("Namenlose Landkonstruktion");
+ $this->setObjectDescription("Namenlose Landkonstruktion");
// Clean up a little
$this->removeNumberFormaters();
}
-
- /**
- * Calls the private constructor
- *
- * @param $class The class' name
- * @return void
- */
- public function constructor ($class) {
- $this->__construct($class);
- }
}
// [EOF]
* 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 DryDock extends BaseConstruction {
// Zugewiesener Hafen
private $harborInstance = null;
// Konstruktor
- private function __construct () {
+ protected function __construct () {
if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output("[DryDock:] Konstruktor erreicht.<br />\n");
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
- $this->setPartDescr("Trockendock");
+ $this->setObjectDescription("Trockendock");
// Generate unique ID number
$this->createUniqueID();
* 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 Harbor extends BaseConstruction {
// Namen des Hafens (z.B. Hamburger Hafen)
private $shipyardList = null;
// Constructor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_HARBOR')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output("[Harbor:] Konstruktor erreicht.<br />\n");
// Set description
- $this->setPartDescr("Hafen");
+ $this->setObjectDescription("Hafen");
// Generate unique ID number
$this->createUniqueID();
* 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 Terminal extends BaseConstruction {
// Zugewiesener Hafen
private $harborInstance = null;
// Konstruktor
- private function __construct () {
+ protected function __construct () {
if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
$this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
__CLASS__,
}
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
- $this->setPartDescr("Anlegebrücke");
+ $this->setObjectDescription("Anlegebrücke");
// Generate unique ID number
$this->createUniqueID();
* 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 Shipyard extends BaseConstruction {
// Werft-Name
private $shippingCompany = null;
// Constructor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_SHIPYARD')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Werft");
+ $this->setObjectDescription("Werft");
// Staff-Liste/Schiffstyp-Liste erzeugen
$this->createStaffList();
* 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 BaseDrive extends BaseSimulator {
// Price of this drive
private $numCams = 0;
// Konstruktor
- private function __construct ($class) {
+ protected function __construct ($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Debug message
if (((defined('DEBUG_DRIVE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Namenloser Antrieb");
+ $this->setObjectDescription("Namenloser Antrieb");
// Clean up a little
$this->removeNumberFormaters();
$this->removePartInstance();
}
- /**
- * Calls the private constructor
- *
- * @param $class The class' name
- * @return void
- */
- public function constructor ($class) {
- $this->__construct($class);
- }
-
// Setter-Methode fuert PS-Zahl
public final function setHorsePower ($hp) {
if ((defined('DEBUG_DRIVE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Antriebsleistung wird auf <strong>%d</strong> PS gesetzt.<br />\n",
* 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 Motor extends BaseDrive implements TradeableItem, ConstructableShipPart {
// Constructor
- private function __construct() {
+ protected function __construct() {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_DRIVE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Namenloser Motor");
+ $this->setObjectDescription("Namenloser Motor");
// Generate unique ID number
$this->createUniqueID();
));
// Beschreibung und Abmasse setzen
- $motorInstance->setPartDescr($descr);
+ $motorInstance->setObjectDescription($descr);
$motorInstance->setWidth($w);
$motorInstance->setHeight($h);
$motorInstance->setLength($l);
* 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 BaseShipPart extends BaseSimulator {
// Price of this ship part
private $price = 0.00;
// Konstruktor
- private function __construct($class) {
+ protected function __construct($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Debug message
if (((defined('DEBUG_SHIPPART')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Beschreibung
- $this->setPartDescr("Schiffsteil");
+ $this->setObjectDescription("Schiffsteil");
// Clean up a little
$this->removeNumberFormaters();
}
- /**
- * Calls the private constructor
- *
- * @param $class The class' name
- * @return void
- */
- public function constructor ($class) {
- $this->__construct($class);
- }
-
// Setter for price
public final function setPrice ($price) {
$this->price = (float) $price;
* 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 MaschineRoom extends BaseShipPart {
// Constructor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Maschinenraum");
+ $this->setObjectDescription("Maschinenraum");
// Generate unique ID number
$this->createUniqueID();
* 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 SimulatorPersonell extends BasePersonell {
// Personell list
private $cacheCond = null;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
if (((defined('DEBUG_PERSONELL')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
$this->__toString()
));
// Set description
- $this->setPartDescr("Simulationspersonal");
+ $this->setObjectDescription("Simulationspersonal");
// Create unique ID
$this->createUniqueID();
* 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 CompanyEmployee extends SimulatorPersonell {
// Employeee list
private $employeeList = null;
// Constructor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if ((((defined('DEBUG_COMPANY_EMPLOYEE')) && (defined('DEBUG_PERSONELL'))) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Firmenangestellte(r)");
+ $this->setObjectDescription("Firmenangestellte(r)");
// Create unique ID
$this->createUniqueID();
* 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 BaseShip extends BaseSimulator {
// Name des Shipes
private $structures = null;
// Namenloses Ship generieren
- private function __construct($class) {
+ protected function __construct($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Beim Schiff angelangt
if (((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT')))
));
// Bezeichnung setzen
- $this->setPartDescr("Schiff");
+ $this->setObjectDescription("Schiff");
// Array-Objekt generieren
$this->createStructuresArray();
$this->removeNumberFormaters();
}
- /**
- * Calls the private constructor
- *
- * @param $class The class' name
- * @return void
- */
- public function constructor ($class) {
- $this->__construct($class);
- }
-
// Array-Objekt anlegen
private function createStructuresArray () {
$this->structures = new FrameworkArrayObject();
__CLASS__,
__LINE__,
$this->getShipName(),
- $partInstance->getPartDescr()
+ $partInstance->getObjectDescription()
));
// Alles klar!
* 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 PassengerShip extends BaseShip implements ConstructableShip, LimitableObject {
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Eltern-Kontruktor aufrufen
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Passagier-Schiff");
+ $this->setObjectDescription("Passagier-Schiff");
// Generate unique ID number
$this->createUniqueID();
$cab = $el->getPartInstance();
if (!is_null($cab)) {
// Kabinenbeschreibung holen
- $cabType = $cab->getPartDescr();
+ $cabType = $cab->getObjectDescription();
}
// Debug-Meldung ausgeben
if ((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] <strong>%s</strong> ist keine Kabine.<br />\n",
__CLASS__,
__LINE__,
- $el->getPartDescr()
+ $el->getObjectDescription()
));
}
}
if ((defined('DEBUG_SHIP')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das <strong>%s</strong> mit dem Namen <strong>%s</strong> hat <strong>%d</strong> Betten.<br />\n",
__CLASS__,
__LINE__,
- $this->getPartDescr(),
+ $this->getObjectDescription(),
$this->getShipName(),
$numBeds
));
* 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 BaseStructure extends BaseSimulator {
// Price of this structure
private $price = 0.00;
// Konstruktor (hier keine Exceptions aendern!)
- private function __construct ($class) {
+ protected function __construct ($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Debug message
if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Schiffsstrukturen");
+ $this->setObjectDescription("Schiffsstrukturen");
// Clean up a little
$this->removeNumberFormaters();
}
- /**
- * Calls the private constructor
- *
- * @param $class The class' name
- * @return void
- */
- public function constructor ($class) {
- $this->__construct($class);
- }
-
// Setter for price
public final function setPrice ($price) {
$this->price = (float) $price;
* 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'))) {
}
// 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?
* 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 EconomyCabin extends BaseCabin implements TradeableItem, ConstructableShipPart {
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Economy-Class-Kabine");
+ $this->setObjectDescription("Economy-Class-Kabine");
// Generate unique ID number
$this->createUniqueID();
* 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 LowCabin extends BaseCabin implements TradeableItem, ConstructableShipPart {
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
));
// Set description
- $this->setPartDescr("2Star-Class-Kabine");
+ $this->setObjectDescription("2Star-Class-Kabine");
// Generate unique ID number
$this->createUniqueID();
* 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 LuxuryCabin extends BaseCabin implements TradeableItem, ConstructableShipPart {
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
));
// Set description
- $this->setPartDescr("Luxuskabine");
+ $this->setObjectDescription("Luxuskabine");
// Generate unique ID number
$this->createUniqueID();
* 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 PremierCabin extends BaseCabin implements TradeableItem, ConstructableShipPart {
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_CABIN')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[PremierCabin:] Konstruktor erreicht.<br />\n",
));
// Set description
- $this->setPartDescr("Premier-Class-Kabine");
+ $this->setObjectDescription("Premier-Class-Kabine");
// Generate unique ID number
$this->createUniqueID();
* 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 BaseCabinStructure extends BaseStructure {
// --- Besondere Eigenschaften dazufuegen: ---
private $numBeds = 0;
// Konstruktor
- private function __construct ($class) {
+ protected function __construct ($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Debug message
if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Kabinenstruktur");
- }
-
- /**
- * Calls the private constructor
- *
- * @param $class The class' name
- * @return void
- */
- public function constructor ($class) {
- $this->__construct($class);
+ $this->setObjectDescription("Kabinenstruktur");
}
// Kabine hinzufuegen
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Die Kabine <strong>%s</strong> wird für das Schiff <strong>%s</strong> konstruiert.<br />\n",
__CLASS__,
__LINE__,
- $cabinInstance->getPartDescr(),
+ $cabinInstance->getObjectDescription(),
$shipInstance->getShipName()
));
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Die Kabine <strong>%s</strong> wurde in das Schiff eingebaut.<br />\n",
__CLASS__,
__LINE__,
- $cabinInstance->getPartDescr(),
+ $cabinInstance->getObjectDescription(),
$shipInstance->getShipName()
));
}
* 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 BaseDeckStructure extends BaseStructure {
// Anzahl Decks
private $numDecks = 0;
// Konstruktor
- private function __construct ($class) {
+ protected function __construct ($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Debug message
if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Deckstruktur");
- }
-
- /**
- * Calls the private constructor
- *
- * @param $class The class' name
- * @return void
- */
- public function constructor ($class) {
- $this->__construct($class);
+ $this->setObjectDescription("Deckstruktur");
}
// Deckstruktur dem Schiff hinzufuegen
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das Deck <strong>%s</strong> wird für das Schiff <strong>%s</strong> konstruiert.<br />\n",
__CLASS__,
__LINE__,
- $deckInstance->getPartDescr(),
+ $deckInstance->getObjectDescription(),
$shipInstance->getShipName()
));
if ((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Das Deck <strong>%s</strong> wurde in das Schiff <strong>%s</strong> eingebaut.<br />\n",
__CLASS__,
__LINE__,
- $deckInstance->getPartDescr(),
+ $deckInstance->getObjectDescription(),
$shipInstance->getShipName()
));
}
* 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 BaseUpperStructure extends BaseStructure {
/**
* Constructor for all super structures on a ship
*/
- private function __construct ($class) {
+ protected function __construct ($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Debug message
if (((defined('DEBUG_STRUCTURE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) {
}
// Set description
- $this->setPartDescr("Aufbauten");
- }
-
- /**
- * Call new constructor
- */
- function constructor ($class) {
- $this->__construct($class);
+ $this->setObjectDescription("Aufbauten");
}
}
* 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 CarDeck extends BaseDeck implements TradeableItem, ConstructableShipPart {
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
));
// Set description
- $this->setPartDescr("Autodeck");
+ $this->setObjectDescription("Autodeck");
// Generate unique ID number
$this->createUniqueID();
* 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 TrainDeck extends BaseDeck implements TradeableItem, ConstructableShipPart {
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
));
// Set description
- $this->setPartDescr("Zug-Deck");
+ $this->setObjectDescription("Zug-Deck");
// Generate unique ID number
$this->createUniqueID();
* 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 TruckDeck extends BaseDeck implements TradeableItem, ConstructableShipPart {
// Konstruktor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
));
// Set description
- $this->setPartDescr("LKW-Deck");
+ $this->setObjectDescription("LKW-Deck");
// Generate unique ID number
$this->createUniqueID();
* 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 BaseDeck extends BaseDeckStructure {
/**
* Constructor for cargo decks in general
*/
- private function __construct ($class) {
+ protected function __construct ($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Debub message
if (((defined('DEBUG_DECK')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
));
// Set description
- $this->setPartDescr("Allgemeines Deck");
- }
-
- /**
- * Calls the private constructor
- *
- * @param $class The class' name
- * @return void
- */
- public function constructor ($class) {
- $this->__construct($class);
+ $this->setObjectDescription("Allgemeines Deck");
}
/**
* 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 Bridge extends BaseUpperStructure implements TradeableItem, ConstructableShipPart {
// Constructor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_MODE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:%d] Konstruktor erreicht.<br />\n",
));
// Set description
- $this->setPartDescr("Brücke");
+ $this->setObjectDescription("Brücke");
// Generate unique ID number
$this->createUniqueID();
* 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/>.
*/
// Is there an application helper instance? We need the method main() for
* 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/>.
*/
// Lower framework classes
* 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/>.
*/
abstract class FrameworkException extends ReflectionException {
/**
* 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 MismatchingCompressorsException extends FrameworkException {
/**
* 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 ContainerItemIsNoArrayException extends FrameworkException {
/**
* 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 ContainerItemIsNullException extends FrameworkException {
/**
* 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 ContainerMaybeDamagedException extends FrameworkException {
/**
* 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 SavePathIsEmptyException extends FrameworkException {
/**
* 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 SavePathIsNoDirectoryException extends FrameworkException {
/**
* 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 SavePathReadProtectedException extends FrameworkException {
/**
* 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 SavePathWriteProtectedException extends FrameworkException {
/**
* 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 DirPointerNotOpenedException extends FrameworkException {
/**
* 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 FilePointerNotOpenedException extends FrameworkException {
/**
* 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 InvalidDataLengthException extends FrameworkException {
/**
* 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 InvalidDirectoryResourceException extends FrameworkException {
/**
* 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 InvalidMD5ChecksumException extends FrameworkException {
/**
* 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 PathIsEmptyException extends FrameworkException {
/**
* 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 PathIsNoDirectoryException extends FrameworkException {
/**
* 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 PathReadProtectedException extends FrameworkException {
/**
* 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 InvalidLanguagePathStringException extends FrameworkException {
/**
* 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 LanguagePathIsEmptyException extends FrameworkException {
/**
* 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 LanguagePathIsNoDirectoryException extends FrameworkException {
/**
* 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 LanguagePathReadProtectedException extends FrameworkException {
/**
* 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 MissingFileIoHandlerException extends FrameworkException {
/**
* 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 MissingLanguageHandlerException extends FrameworkException {
/**
* 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 ClassMismatchException extends FrameworkException {
/**
* 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 ClassNotFoundException extends FrameworkException {
/**
* 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 ConfigEntryIsEmptyException extends FrameworkException {
/**
* 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 ConfigEntryNotFoundException extends FrameworkException {
/**
* 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 DimNotFoundInArrayException extends FrameworkException {
/**
* 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 ExceptionNotChangedException extends FrameworkException {
/**
* 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 ExceptionNotFoundException extends FrameworkException {
/**
* 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 GetterNotFoundException extends FrameworkException {
/**
* 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 InvalidArrayCountException extends FrameworkException {
/**
* 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 InvalidObjectException extends FrameworkException {
/**
* 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 MissingArrayElementsException extends FrameworkException {
/**
* 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 MissingDecimalsThousandsSeperatorException extends FrameworkException {
/**
* 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 MissingMethodException extends FrameworkException {
/**
* 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 NoArrayCreatedException extends FrameworkException {
/**
* 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 NoArrayException extends FrameworkException {
/**
* 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 NoObjectException extends FrameworkException {
/**
* 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 NullPointerException extends FrameworkException {
/**
* 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 VariableIsNotSetException extends FrameworkException {
/**
* 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 BasePathIsEmptyException extends FrameworkException {
/**
* 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 BasePathIsNoDirectoryException extends FrameworkException {
/**
* 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 BasePathReadProtectedException extends FrameworkException {
/**
* 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 InvalidBasePathStringException extends FrameworkException {
/**
* 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 InvalidTemplateVariableNameException extends FrameworkException {
/**
* 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 UnexpectedTemplateTypeException extends FrameworkException {
/**
* 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 UnsupportedTemplateEngineException extends FrameworkException {
/**
* 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 ViewHelperNotFoundException extends FrameworkException {
/**
* 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/>.
*/
interface ManageableApplication extends FrameworkInterface {
/**
* 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/>.
*/
interface extends FrameworkInterface {
}
* 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/>.
*/
interface FrameworkInterface {
}
* 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/>.
*/
interface Commandable extends FrameworkInterface {
/**
* 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/>.
*/
interface Compressor extends FrameworkInterface {
/**
* 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/>.
*/
interface FrameworkDatabaseInterface extends FrameworkInterface {
/**
* 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/>.
*/
interface DatabaseFrontendInterface extends FrameworkDatabaseInterface {
/**
* 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/>.
*/
interface DatabaseConnector extends FrameworkDatabaseInterface {
}
* 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/>.
*/
interface Debugger extends FrameworkInterface {
/**
* 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/>.
*/
interface LimitableObject extends FrameworkInterface {
/**
* 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/>.
*/
interface Streamable extends FrameworkInterface {
}
* 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/>.
*/
interface FileInputStreamer extends Streamable {
/**
* 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/>.
*/
interface FileOutputStreamer extends Streamable {
/**
* 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/>.
*/
interface OutputStreamer extends Streamable {
/**
* 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/>.
*/
interface ManageableLanguage extends FrameworkInterface {
/**
* 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/>.
*/
interface Requestable extends FrameworkInterface {
/**
* 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/>.
*/
interface Responseable extends FrameworkInterface {
/**
* 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/>.
*/
interface CompileableTemplate extends FrameworkInterface {
/**
* 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/>.
*/
interface ViewHelper extends FrameworkInterface {
/**
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set part description
$this->setObjectDescription("");
*
* @return void
*/
- private function __construct ($class) {
+ protected function __construct ($class) {
// Set real class
$this->setRealClass($class);
+
+ // Init this instance
+ $this->initInstance($class);
}
/**
}
/**
- * Public constructor (for initializing things, etc.)
+ * Initializes the instance
*
* @return void
*/
- public function constructor ($class) {
- // Call constructor
- $this->__construct($class);
-
+ public function initInstance ($class) {
// Get the current (singleton) configuration instance
$this->setConfigInstance(FrameworkConfiguration::createFrameworkConfiguration());
/**
* Setter for language instance
*
- * @param $configInstance The configuration instance which shall
+ * @param $configInstance The configuration instance which shall
* be FrameworkConfiguration
* @return void
*/
public final function setConfigInstance (FrameworkConfiguration $configInstance) {
- $this->cfgInstance = $configInstance;
+ self::$cfgInstance = $configInstance;
if ((defined('DEBUG_SYSTEM')) && (is_object($this->getDebugInstance()))) $this->getDebugInstance()->output(sprintf("[%s:] Konfigurations-Handler auf <strong>%s</strong> gesetzt.<br />\n",
$this->__toString(),
$configInstance->__toString()
public final function getConfigInstance () {
if ((defined('DEBUG_SYSTEM')) && (is_object($this->getDebugInstance()))) $this->getDebugInstance()->output(sprintf("[%s:] Konfigurations-Handler <strong>%s</strong> angefordert.<br />\n",
$this->__toString(),
- $this->cfgInstance->__toString()
+ self::$cfgInstance->__toString()
));
- return $this->cfgInstance;
+ return self::$cfgInstance;
}
/**
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class FrameworkArrayObject extends ArrayObject {
- /**
- * Constructor for smooth coding style ;-)
- *
- * @param $class The class's real name
- * @return void
- */
- public function constructor ($class) {
- // $class will be ignored for backward compatiblity
- }
-
/**
* Get real class' name back
*
*/
class BaseCommand extends BaseFrameworkSystem {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct ($class) {
+ protected function __construct ($class) {
// Call parent constructor
- parent::constructor($class);
- }
-
- /**
- * Constructor for smooth coding style ;-)
- *
- * @param $class The class's real name
- * @return void
- */
- public function constructor ($class) {
- $this->__construct($class);
+ parent::__construct($class);
}
}
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set special description
$this->setObjectDescription("Spezieller Command");
*/
class Bzip2Compressor extends BaseFrameworkSystem implements Compressor {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor!
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_COMPRESSOR')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
*/
class GzipCompressor extends BaseFrameworkSystem implements Compressor {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor!
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_COMPRESSOR')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
*/
class NullCompressor extends BaseFrameworkSystem implements Compressor {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor!
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if (((defined('DEBUG_COMPRESSOR')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
*/
class ConsoleTools extends BaseFrameworkSystem {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Console-Tools");
*/
class BaseController extends BaseFrameworkSystem {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Clean up a little
$this->removeNumberFormaters();
}
-
- /**
- * The public constructor
- *
- * @return void
- */
- public function constructor ($class) {
- // Calls just the private one
- $this->__construct($class);
- }
}
// [EOF]
private $limitInstance = null;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct($class) {
+ protected function __construct($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Debug message
if (((defined('DEBUG_DATABASE')) || (defined('DEBUG_ALL'))) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output(sprintf("[%s:] Konstruktor erreicht.<br />\n",
$this->removeNumberFormaters();
}
- /**
- * The public constructor
- *
- * @return void
- */
- public function constructor ($class) {
- // Calls just the private one
- $this->__construct($class);
- }
-
/**
* Getter for limitation instance
*
*
* @return void
*/
- private function __construct() {
+ protected function __construct() {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Dateidatenbankschicht");
*/
class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Debug-Ausgabe auf Konsole");
*/
class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Debug-Ausgabe in error_log()");
*/
class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStreamer {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Debug-Ausgabe auf Konsole");
private $limitArray = null;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private final function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set part description
$this->setObjectDescription("Limitierungsobjekt");
*/
public function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Debug message
if ((defined('DEBUG_CONTAINER')) && (defined('DEBUG_CONSTRUCT'))) $this->getDebugInstance()->output("[SerializationContainer:] Konstruktor erreicht.<br />\n");
*/
class FileIOStream extends BaseFrameworkSystem implements FileInputStreamer, FileOutputStreamer {
/**
- * Private constructor
+ * Protected constructor
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set part description
$this->setObjectDescription("Universal Datei-Ein-/Ausgabesystem");
private $dirPointer = null;
/**
- * Private constructor
+ * Protected constructor
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set part description
$this->setObjectDescription("Verzeichnis-Handler");
private $filePointer = null;
/**
- * Private constructor
+ * Protected constructor
*/
- private final function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set part description
$this->setObjectDescription("Dateiausgabe-Handler");
private $filePointer = null;
/**
- * Private constructor
+ * Protected constructor
*/
- private final function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set part description
$this->setObjectDescription("Dateiausgabe-Handler");
private static $thisInstance = null;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private final function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set part description
$this->setObjectDescription("Sprachsystem");
private $vars = array();
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Console-Ausgabe-Handler");
private static $webInstance = null;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Web-Ausgabe-Handler");
private $requestData = array();
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private final function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set part description
$this->setObjectDescription("HTTP-Anfrage");
private $responseBody = "";
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set part description
$this->setObjectDescription("HTTP-Antwort");
const EXCEPTION_INVALID_VIEW_HELPER = 0xa02;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private final function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set part description
$this->setObjectDescription("Template-Engine");
* 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 BaseMiddleware extends BaseFrameworkSystem {
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct ($class) {
+ protected function __construct ($class) {
// Call parent constructor
- parent::constructor($class);
+ parent::__construct($class);
// Clean up a little
$this->removeNumberFormaters();
}
-
- /**
- * Public constructor
- *
- * @return void
- */
- public function constructor ($class) {
- // Just call the private constructor
- $this->__construct($class);
- }
}
// [EOF]
* 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 CompressorChannel extends BaseMiddleware {
// Output handler instance
private $compressor = null;
// Public constructor
- private function __construct () {
+ protected function __construct () {
// Call parent constructor!
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Komprimierungshandler");
* 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 DatabaseConnection extends BaseMiddleware implements DatabaseConnector, LimitableObject {
// Array for connection data
// An instance of this class
private static $thisInstance = null;
- // Private constructor
- private final function __construct() {
+ // Protected constructor
+ protected function __construct() {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Datenbank-Mittelschicht");
* 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 DebugMiddleware extends BaseMiddleware {
/**
private static $thisInstance = null;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private final function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Debug-Ausgabe-Handler");
* 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 FileIOHandler extends BaseMiddleware {
/**
private static $thisInstance = null;
/**
- * Private constructor
+ * Protected constructor
*
* @return void
*/
- private function __construct () {
+ protected function __construct () {
// Call parent constructor
- parent::constructor(__CLASS__);
+ parent::__construct(__CLASS__);
// Set description
$this->setObjectDescription("Datei-Ein-/Ausgabe-Handler");
* 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/>.
*/
// Load the class from inc/config direktory
const EXCEPTION_CONFIG_ENTRY_WAS_NOT_FOUND = 0xc01;
/**
- * Private constructor
+ * Protected constructor
*/
- private function __construct () {
+ protected function __construct () {
// Empty for now
}
* 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/>.
*/
// Initialize layer
* 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/>.
*/
// Zum Testen speichern wir in lokale Dateien (LocalFileDatabase)
* 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/>.
*/
// Get the instance
* 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/>.
*/
// Include the class loader function
* 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/>.
*/
try {
$lang = LanguageSystem::createLanguageSystem(sprintf("%s%s",
* 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/>.
*
* ----------------------------------
* 1.1
* 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/>.
*/
// Debug-Ausgabe vorbereiten
* 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/>.
*/
// Does the user has an application specified?