From: Roland Haeder Date: Tue, 20 May 2014 18:33:37 +0000 (+0200) Subject: Renamed one getSeekPosition() to determineSeekPosition(). X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=aa07fa0b7c42f430541e0610d45f4aa047e60666;p=core.git Renamed one getSeekPosition() to determineSeekPosition(). Signed-off-by: Roland Häder --- diff --git a/inc/classes/interfaces/io/class_Streamable.php b/inc/classes/interfaces/io/class_Streamable.php index 3f01db57..07ce93fe 100644 --- a/inc/classes/interfaces/io/class_Streamable.php +++ b/inc/classes/interfaces/io/class_Streamable.php @@ -23,11 +23,11 @@ */ interface Streamable extends FrameworkInterface { /** - * "Getter" for seek position + * Determines seek position * * @return $seekPosition Current seek position */ - function getSeekPosition (); + function determineSeekPosition (); /** * Seek to given offset (default) or other possibilities as fseek() gives. diff --git a/inc/classes/interfaces/io/pointer/io/class_InputOutputPointer.php b/inc/classes/interfaces/io/pointer/io/class_InputOutputPointer.php index b901c1b4..6dc483a3 100644 --- a/inc/classes/interfaces/io/pointer/io/class_InputOutputPointer.php +++ b/inc/classes/interfaces/io/pointer/io/class_InputOutputPointer.php @@ -37,13 +37,6 @@ interface InputOutputPointer extends InputPointer, OutputPointer { * @return $tatus Status of this operation */ function seek ($seekPosition, $whence = SEEK_SET); - - /** - * "Getter" for seek position - * - * @return $seekPosition Seek position - */ - function getSeekPosition (); } // [EOF] diff --git a/inc/classes/main/debug/class_DebugConsoleOutput.php b/inc/classes/main/debug/class_DebugConsoleOutput.php index a4e07bbe..401dc9df 100644 --- a/inc/classes/main/debug/class_DebugConsoleOutput.php +++ b/inc/classes/main/debug/class_DebugConsoleOutput.php @@ -99,12 +99,12 @@ class DebugConsoleOutput extends BaseFrameworkSystem implements Debugger, Output } /** - * "Getter" for seek position + * Determines seek position * * @return $seekPosition Current seek position * @throws UnsupportedOperationException If this method is called */ - public function getSeekPosition () { + public function determineSeekPosition () { throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); } diff --git a/inc/classes/main/debug/class_DebugErrorLogOutput.php b/inc/classes/main/debug/class_DebugErrorLogOutput.php index 74ea9285..b39adc5f 100644 --- a/inc/classes/main/debug/class_DebugErrorLogOutput.php +++ b/inc/classes/main/debug/class_DebugErrorLogOutput.php @@ -96,12 +96,12 @@ class DebugErrorLogOutput extends BaseFrameworkSystem implements Debugger, Outpu } /** - * "Getter" for seek position + * Determines for seek position * * @return $seekPosition Current seek position * @throws UnsupportedOperationException If this method is called */ - public function getSeekPosition () { + public function determineSeekPosition () { throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); } diff --git a/inc/classes/main/debug/class_DebugWebOutput.php b/inc/classes/main/debug/class_DebugWebOutput.php index 3795d761..7e781e45 100644 --- a/inc/classes/main/debug/class_DebugWebOutput.php +++ b/inc/classes/main/debug/class_DebugWebOutput.php @@ -85,12 +85,12 @@ class DebugWebOutput extends BaseFrameworkSystem implements Debugger, OutputStre } /** - * "Getter" for seek position + * Determines seek position * * @return $seekPosition Current seek position * @throws UnsupportedOperationException If this method is called */ - public function getSeekPosition () { + public function determineSeekPosition () { throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION); } diff --git a/inc/classes/main/file_directories/class_BaseFileIo.php b/inc/classes/main/file_directories/class_BaseFileIo.php index f33024c6..16e905dd 100644 --- a/inc/classes/main/file_directories/class_BaseFileIo.php +++ b/inc/classes/main/file_directories/class_BaseFileIo.php @@ -124,11 +124,11 @@ class BaseFileIo extends BaseFrameworkSystem { } /** - * "Getter" for seek position + * Determines seek position * * @return $seekPosition Current seek position */ - public final function getSeekPosition () { + public final function determineSeekPosition () { return ftell($this->getPointer()); } @@ -158,14 +158,14 @@ class BaseFileIo extends BaseFrameworkSystem { //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] CALLED!', __METHOD__, __LINE__)); // Get current seek position - $seekPosition = $this->getSeekPosition(); + $seekPosition = $this->determineSeekPosition(); // Seek to end $seekStatus = $this->seek(0, SEEK_END); //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput(sprintf('[%s:%d:] seekStatus=%d', __METHOD__, __LINE__, $seekStatus)); // Get position again (which is the end of the file) - $size = $this->getSeekPosition(); + $size = $this->determineSeekPosition(); // Reset seek position to old $this->seek($seekPosition); diff --git a/inc/classes/main/file_directories/io_stream/class_FileIoStream.php b/inc/classes/main/file_directories/io_stream/class_FileIoStream.php index bf0a3c2d..599bc9f3 100644 --- a/inc/classes/main/file_directories/io_stream/class_FileIoStream.php +++ b/inc/classes/main/file_directories/io_stream/class_FileIoStream.php @@ -264,12 +264,12 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil } /** - * "Getter" for seek position + * Determines seek position * * @return $seekPosition Current seek position * @todo 0% done */ - public function getSeekPosition () { + public function determineSeekPosition () { $this->partialStub(); } diff --git a/inc/classes/main/iterator/io/class_FileIoIterator.php b/inc/classes/main/iterator/io/class_FileIoIterator.php index e6aee1d9..171c6777 100644 --- a/inc/classes/main/iterator/io/class_FileIoIterator.php +++ b/inc/classes/main/iterator/io/class_FileIoIterator.php @@ -71,7 +71,7 @@ class FileIoIterator extends BaseIterator implements SeekableWritableFileIterato */ public function key () { // Return it - return $this->getPointerInstance()->getSeekPosition(); + return $this->getPointerInstance()->determineSeekPosition(); } /** diff --git a/inc/classes/middleware/io/class_FileIoHandler.php b/inc/classes/middleware/io/class_FileIoHandler.php index 2c6ae12c..d8882a72 100644 --- a/inc/classes/middleware/io/class_FileIoHandler.php +++ b/inc/classes/middleware/io/class_FileIoHandler.php @@ -168,12 +168,12 @@ class FileIoHandler extends BaseMiddleware implements IoHandler { } /** - * "Getter" for seek position + * Determines seek position * * @return $seekPosition Current seek position * @todo 0% done */ - public function getSeekPosition () { + public function determineSeekPosition () { $this->partialStub(); }