Rewritten:
[core.git] / framework / main / classes / file_directories / class_BaseAbstractFile.php
index 7f827a8e0f5af1735fe53d1b33a93f2555dffefa..00392749629bcee8b0e45045269faf92dc796ac2 100644 (file)
@@ -36,11 +36,6 @@ class BaseAbstractFile extends BaseFrameworkSystem implements FilePointer, Close
         */
        private $totalEntries = 0;
 
         */
        private $totalEntries = 0;
 
-       /**
-        * The current file we are working in
-        */
-       private $fileName = '';
-
        /**
         * Protected constructor
         *
        /**
         * Protected constructor
         *
@@ -107,35 +102,15 @@ class BaseAbstractFile extends BaseFrameworkSystem implements FilePointer, Close
        }
 
        /**
        }
 
        /**
-        * Getter for the file pointer
+        * Getter for the file object
         *
         *
-        * @return      $filePointer    The file pointer which shall be a valid file resource
+        * @return      $fileObject             An instance of a SplFileObject
         * @throws      UnsupportedOperationException   If this method is called
         */
         * @throws      UnsupportedOperationException   If this method is called
         */
-       public final function getPointer () {
+       public final function getFileObject () {
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
                throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
-       /**
-        * Setter for file name
-        *
-        * @param       $fileName       The new file name
-        * @return      void
-        */
-       protected final function setFileName ($fileName) {
-               $fileName = (string) $fileName;
-               $this->fileName = $fileName;
-       }
-
-       /**
-        * Getter for file name
-        *
-        * @return      $fileName       The current file name
-        */
-       public final function getFileName () {
-               return $this->fileName;
-       }
-
        /**
         * Close a file source and set it's instance to null and the file name
         * to empty
        /**
         * Close a file source and set it's instance to null and the file name
         * to empty
@@ -144,14 +119,11 @@ class BaseAbstractFile extends BaseFrameworkSystem implements FilePointer, Close
         */
        public function closeFile () {
                // Debug message
         */
        public function closeFile () {
                // Debug message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d]: fileName=%s - CALLED!', __METHOD__, __LINE__, $this->getFileName()));
+               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d]: CALLED!', __METHOD__, __LINE__));
 
                // Close down pointer instance as well by unsetting it
                $this->unsetPointerInstance();
 
 
                // Close down pointer instance as well by unsetting it
                $this->unsetPointerInstance();
 
-               // Remove file name
-               $this->setFileName('');
-
                // Debug message
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d]: EXIT!', __METHOD__, __LINE__));
        }
                // Debug message
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d]: EXIT!', __METHOD__, __LINE__));
        }