]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/visitor/class_BaseVisitor.php
Moved a lot classes, added visitors and methods
[hub.git] / application / hub / main / visitor / class_BaseVisitor.php
index a955ea64c76fccddde65b9c40bfa05068d0e8a83..c34ef9f2fc23a7091b13aeeead39c05941c317f8 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 class BaseVisitor extends BaseHubSystem {
+       /**
+        * Mode of the visitor (the first word of the concrete class' name)
+        */
+       private $visitorMode = 'invalid';
+
        /**
         * Protected constructor
         *
@@ -36,6 +41,25 @@ class BaseVisitor extends BaseHubSystem {
                $this->removeNumberFormaters();
                $this->removeSystemArray();
        }
+
+       /**
+        * Setter for visitor mode
+        *
+        * @param       $visitorMode    New visitor mode to set
+        * @return      void
+        */
+       protected final function setVisitorMode ($visitorMode) {
+               $this->visitorMode = (string) $visitorMode;
+       }
+
+       /**
+        * Getter for visitor mode
+        *
+        * @return      $visitorMode    New visitor mode to set
+        */
+       public final function getVisitorMode () {
+               return $this->visitorMode;
+       }
 }
 
 // [EOF]