Added new classes for file system and interfaces for it + introduced CloseableFile.
[core.git] / inc / main / classes / file_directories / class_BaseFileIo.php
index d52d02fa1b00c7e6d5ef8c9caa0d5eed68ef3967..2f9b6f8da33786d73cbb369db865de696bca74af 100644 (file)
@@ -21,7 +21,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
-class BaseFileIo extends BaseFrameworkSystem {
+class BaseFileIo extends BaseFrameworkSystem implements FilePointer, CloseableFile {
        /**
         * The current file we are working in
         */
@@ -67,7 +67,7 @@ class BaseFileIo extends BaseFrameworkSystem {
         * @throws      NullPointerException    If the file pointer instance is not set by setPointer()
         * @throws      InvalidResourceException        If there is being set
         */
-       private function closeFile () {
+       public function closeFile () {
                // Debug message
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d]: fileName=%s - CALLED!', __METHOD__, __LINE__, $this->getFileName()));