From: Roland Häder Date: Wed, 20 Apr 2011 01:52:56 +0000 (+0000) Subject: Visitor instances can now be stored in all objects for speeding up the code. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f714ea9c70eebbb5a7687d8d871f52050c66e220;p=core.git Visitor instances can now be stored in all objects for speeding up the code. --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 9c1cf4ca..e34ebe98 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -153,6 +153,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { */ private $handlerInstance = null; + /** + * Visitor handler instance + */ + private $visitorInstance = null; + /** * The real class name */ @@ -1642,6 +1647,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { return $this->handlerInstance; } + /** + * Setter for visitor instance + * + * @param $visitorInstance A Visitor instance + * @return void + */ + protected final function setVisitorInstance (Visitor $visitorInstance) { + $this->visitorInstance = $visitorInstance; + } + + /** + * Getter for visitor instance + * + * @return $visitorInstance A Visitor instance + */ + protected final function getVisitorInstance () { + return $this->visitorInstance; + } + /** * Setter for raw package Data *