X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fclass_BaseFrameworkSystem.php;h=c1147db38a6ac403db7194c21d7b87b59763e6c3;hp=c29262f1b0f63aab74671fd441fbf3dfb43e80b2;hb=014feb51ca186f4b66edeee7dca62a190dff0564;hpb=f1d358441b193b364d57788d660e6649d0229ca6 diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index c29262f1b0..c1147db38a 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -3,12 +3,12 @@ * The simulator system class is the super class of all other classes. This * class handles saving of games etc. * - * @author Roland Haeder + * @author Roland Haeder * @version 0.3.0 * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software * @license GNU GPL 3.0 or any newer version - * @link http://www.mxchange.org - * + * @link http://www.mxchange.org + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or @@ -126,7 +126,6 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { const EXCEPTION_VARIABLE_NOT_SET = 0x02a; const EXCEPTION_ATTRIBUTES_ARE_MISSING = 0x02b; const EXCEPTION_ARRAY_ELEMENTS_MISSING = 0x02c; - const EXCEPTION_NOT_CONSTRUCTABLE = 0x02d; /** * In the super constructor these system classes shall be ignored or else @@ -148,7 +147,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { "GzipCompressor", // GZIP compressor "WebOutput", // Web output sub-system ); - + /** * Private super constructor * @@ -199,7 +198,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { $this->getDebugInstance()->output(sprintf("[%s::%s] Stub! Args: %s", $this->__toString(), $methodName, - $argsString + $argsString )); // Return nothing @@ -475,7 +474,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { private final function generateIdNumber () { return sprintf("%s@%s", $this->__toString(), - md5(sprintf("%s:%s:%s:%s:%s:%s", + md5(sprintf("%s:%s:%s:%s:%s:%s", $this->__toString(), $this->getPartDescr(), time(), @@ -570,11 +569,6 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { * @return boolean The result of comparing both's unique ID */ public final function equals ($object) { - if ((defined('DEBUG_SYSTEM')) && (is_object($this->getDebugInstance()))) $this->getDebugInstance()->output(sprintf("[%s:] Ist %s=%s?
\n", - $this->__toString(), - $this->__toString(), - $object->__toString() - )); return ($this->getUniqueID() == $object->getUniqueID()); } @@ -587,8 +581,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { */ public function itemMatches ($itemInstance) { return ( - ($this->__toString() == $itemInstance->__toString()) - && ($this->getPartDescr() == $itemInstance->getPartDescr()) + ( + $this->__toString() == $itemInstance->__toString() + ) && ( + $this->getPartDescr() == $itemInstance->getPartDescr() + ) ); } @@ -726,7 +723,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { * @throws InvalidArrayCountException If the array contains less or * more than two elements */ - public function getPathFileNameFromObject () { + public final function getPathFileNameFromObject () { // Get the main object's unique ID. We use this as a path/filename combination $pathFile = $this->getUniqueID();