Moved iterator instancing + removed duplicate getPointer().
authorRoland Haeder <roland@mxchange.org>
Mon, 23 Jun 2014 17:54:31 +0000 (19:54 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 23 Jun 2014 17:54:31 +0000 (19:54 +0200)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/main/file_directories/binary/class_BaseBinaryFile.php
inc/classes/main/file_directories/directory/class_FrameworkDirectoryPointer.php
inc/classes/main/file_directories/text/input/.htaccess [new file with mode: 0644]
inc/classes/main/file_directories/text/output/.htaccess [new file with mode: 0644]

index 230b4cb..77b18e8 100644 (file)
@@ -311,16 +311,6 @@ class BaseBinaryFile extends BaseFile {
                return $isFound;
        }
 
-       /**
-        * Getter for the file pointer
-        *
-        * @return      $filePointer    The file pointer which shall be a valid file resource
-        * @throws      UnsupportedOperationException   If this method is called
-        */
-       public final function getPointer () {
-               throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
-       }
-
        /**
         * Initializes the back-buffer by setting it to an empty string.
         *
index da22040..7fe69cb 100644 (file)
@@ -99,12 +99,12 @@ class FrameworkDirectoryPointer extends BaseFrameworkSystem {
                        }
                }
 
-               // Get an iterator for the directory
-               $directoryInstance = new DirectoryIterator($pathName);
-
                // Create new instance
                $pointerInstance = new FrameworkDirectoryPointer();
 
+               // Get an iterator for the directory
+               $directoryInstance = new DirectoryIterator($pathName);
+
                // Set directory pointer and path name
                $pointerInstance->setDirectoryInstance($directoryInstance);
                $pointerInstance->setPathName($pathName);
diff --git a/inc/classes/main/file_directories/text/input/.htaccess b/inc/classes/main/file_directories/text/input/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all
diff --git a/inc/classes/main/file_directories/text/output/.htaccess b/inc/classes/main/file_directories/text/output/.htaccess
new file mode 100644 (file)
index 0000000..3a42882
--- /dev/null
@@ -0,0 +1 @@
+Deny from all