X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fclass_BaseFrameworkSystem.php;fp=inc%2Fclasses%2Fmain%2Fclass_BaseFrameworkSystem.php;h=08abd1f8001ec6046bd603f487a638f08ea8fd75;hp=de854be0232e2d440c09d9784daf581896c765ec;hb=d0b833b090c7cb50e075e4b08d052d415780faa0;hpb=9352eb07632239046df48ea9ebf7ab98e95358bf diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index de854be..08abd1f 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -68,6 +68,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { */ private $templateInstance = null; + /** + * Database result instance + */ + private $resultInstance = null; + /** * The real class name */ @@ -201,6 +206,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { * Destructor reached... * * @return void + * @todo This is old code. Do we still need this old lost code? */ public function __destruct() { // Is this object already destroyed? @@ -211,7 +217,7 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { $this->resetUniqueID(); } elseif ((defined('DEBUG_DESTRUCTOR')) && (is_object($this->getDebugInstance()))) { // Already destructed object - $this->getDebugInstance()->output(sprintf("[%s:] Das Objekt %s wurde bereits zerstört.", + $this->getDebugInstance()->output(sprintf("[%s:] The object %s is already destroyed.", __CLASS__, $this->__toString() )); } @@ -320,6 +326,26 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { } } + /** + * Setter for database result instance + * + * @param $resultInstance An instance of a database result class + * @return void + * @todo SearchableResult and UpdateableResult shall have a super interface to use here + */ + protected final function setResultInstance (SearchableResult $resultInstance) { + $this->resultInstance = $resultInstance; + } + + /** + * Getter for database result instance + * + * @return $resultInstance An instance of a database result class + */ + public final function getResultInstance () { + return $this->resultInstance; + } + /** * Setter for template engine instances *