X-Git-Url: https://git.mxchange.org/?p=core.git;a=blobdiff_plain;f=inc%2Fmain%2Fclasses%2Ffile_directories%2Fclass_BaseAbstractFile.php;h=a4f718dccf51b29039c86e3b86d10b2a8957b305;hp=e26c58bbcefd3b06b4c8364a6b902e8fafa889f9;hb=de1f271c2bdb43725f6671ea6588a44cf33bf091;hpb=751f9e6c51f00dba27757b72fc85490e51fd3797 diff --git a/inc/main/classes/file_directories/class_BaseAbstractFile.php b/inc/main/classes/file_directories/class_BaseAbstractFile.php index e26c58bb..a4f718dc 100644 --- a/inc/main/classes/file_directories/class_BaseAbstractFile.php +++ b/inc/main/classes/file_directories/class_BaseAbstractFile.php @@ -1,10 +1,16 @@ * @version 0.0.0 - * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2015 Core Developer Team + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2017 Core Developer Team * @license GNU GPL 3.0 or any newer version * @link http://www.ship-simu.org * @@ -21,7 +27,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -class BaseAbstractFile extends BaseFrameworkSystem { +class BaseAbstractFile extends BaseFrameworkSystem implements FilePointer, CloseableFile { /** * Counter for total entries */ @@ -133,9 +139,9 @@ class BaseAbstractFile extends BaseFrameworkSystem { * * @return void */ - private function closeFile () { + public function closeFile () { // Debug message - //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d]: fileName=%s - CALLED!', __METHOD__, __LINE__, $this->getFileName())); + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d]: fileName=%s - CALLED!', __METHOD__, __LINE__, $this->getFileName())); // Close down pointer instance as well by unsetting it $this->unsetPointerInstance(); @@ -144,7 +150,7 @@ class BaseAbstractFile extends BaseFrameworkSystem { $this->setFileName(''); // Debug message - //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d]: EXIT!', __METHOD__, __LINE__)); + //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('[%s:%d]: EXIT!', __METHOD__, __LINE__)); } /** @@ -195,7 +201,5 @@ class BaseAbstractFile extends BaseFrameworkSystem { // Call pointer instance return $this->getPointerInstance()->isEndOfFileReached(); } -} -// [EOF] -?> +}