Renamed BaseFile to BaseAbstractFile to make it more clear that this class is
[core.git] / inc / classes / main / file_directories / class_BaseFileIo.php
index f449f11dfb99deed448c0fb7f0cecf670a0bef23..e1b7c5065614898257155206da49f04608c9e28d 100644 (file)
@@ -68,6 +68,9 @@ class BaseFileIo extends BaseFrameworkSystem {
         * @throws      InvalidResourceException        If there is being set
         */
        public function closeFile () {
+               // Debug message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d]: fileName=%s - CALLED!', __METHOD__, __LINE__, $this->getFileName()));
+
                if (is_null($this->getPointer())) {
                        // Pointer not initialized
                        throw new NullPointerException($this, self::EXCEPTION_IS_NULL_POINTER);
@@ -80,6 +83,9 @@ class BaseFileIo extends BaseFrameworkSystem {
                @fclose($this->getPointer());
                $this->setPointer(NULL);
                $this->setFileName('');
+
+               // Debug message
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d]: EXIT!', __METHOD__, __LINE__));
        }
 
        /**