From f714ea9c70eebbb5a7687d8d871f52050c66e220 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 20 Apr 2011 01:52:56 +0000 Subject: [PATCH] Visitor instances can now be stored in all objects for speeding up the code. --- .../main/class_BaseFrameworkSystem.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) 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 * -- 2.39.5