From: Roland Haeder Date: Sat, 31 May 2014 11:47:40 +0000 (+0200) Subject: No iterator here. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7b2f569591ed4203e92af9575ebbd39e6e8758d8;p=core.git No iterator here. Signed-off-by: Roland Häder --- diff --git a/inc/classes/main/file_directories/class_BaseFile.php b/inc/classes/main/file_directories/class_BaseFile.php index 7d07de9a..a625624e 100644 --- a/inc/classes/main/file_directories/class_BaseFile.php +++ b/inc/classes/main/file_directories/class_BaseFile.php @@ -277,7 +277,7 @@ y * @return void //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__)); // Get key (= seek position) - $seekPosition = $this->getIteratorInstance()->key(); + $seekPosition = $this->key(); //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] Setting seekPosition=%s', __METHOD__, __LINE__, $seekPosition)); // And set it here @@ -299,7 +299,7 @@ y * @return void assert(is_callable(array($this, 'flushFileHeader'))); // Seek to beginning of file - $this->getIteratorInstance()->rewind(); + $this->rewind(); // And update seek position ... $this->updateSeekPosition(); @@ -319,7 +319,7 @@ y * @return void //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__)); // Seek to currently ("old") saved position - $this->getIteratorInstance()->seek($this->getSeekPosition()); + $this->seek($this->getSeekPosition()); //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] EXIT!!', __METHOD__, __LINE__)); }