Added new interfaces for file i/o classes.
[core.git] / inc / classes / main / class_BaseFrameworkSystem.php
index 78cdde3f367828f3e4f7cf12e015b9b3e5e3e561..abcefc8c35f6b2aaed66eaa6e7fa31ed0e3c14c1 100644 (file)
@@ -173,6 +173,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $wrapperInstance = NULL;
 
+       /**
+        * An instance of a file I/O pointer class (not handler)
+        */
+       private $pointerInstance = NULL;
+
        /**
         * Thousands separator
         */
@@ -1218,6 +1223,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                return $this->iteratorInstance;
        }
 
+       /**
+        * Setter for InputOutputPointer instance
+        *
+        * @param       $pointerInstance        An instance of an InputOutputPointer
+        * @return      void
+        */
+       protected final function setPointerInstance (InputOutputPointer $pointerInstance) {
+               $this->pointerInstance = $pointerInstance;
+       }
+
+       /**
+        * Getter for InputOutputPointer instance
+        *
+        * @return      $pointerInstance        An instance of an InputOutputPointer
+        */
+       public final function getPointerInstance () {
+               return $this->pointerInstance;
+       }
+
        /**
         * Checks whether an object equals this object. You should overwrite this
         * method to implement own equality checks