Renamed getPosition() -> getSeekPosition().
[core.git] / inc / classes / main / file_directories / class_BaseFileIo.php
index 8cc8f60b11cc3f91949c83e996adf41482f291e4..b3b676dd99527ed16b7e8ecb79d5cac675c338b2 100644 (file)
@@ -128,7 +128,7 @@ class BaseFileIo extends BaseFrameworkSystem {
         *
         * @return      $seekPosition   Current seek position
         */
-       public final function getPosition () {
+       public final function getSeekPosition () {
                return ftell($this->getPointer());
        }
 
@@ -154,13 +154,13 @@ class BaseFileIo extends BaseFrameworkSystem {
         */
        public function size () {
                // Get current seek position
-               $seekPosition = $this->getPosition();
+               $seekPosition = $this->getSeekPosition();
 
                // Seek to end
                $this->seek(0, SEEK_END);
 
                // Get position again  (which is the end of the file)
-               $size = $this->getPosition();
+               $size = $this->getSeekPosition();
 
                // Reset seek position to old
                $this->seek($seekPosition);