Visitor instances can now be stored in all objects for speeding up the code.
authorRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2011 01:52:56 +0000 (01:52 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 20 Apr 2011 01:52:56 +0000 (01:52 +0000)
inc/classes/main/class_BaseFrameworkSystem.php

index 9c1cf4c..e34ebe9 100644 (file)
@@ -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
         *