*
* @return $seekPosition Current seek position
*/
- function getPosition ();
+ function getSeekPosition ();
/**
* Seek to given offset (default) or other possibilities as fseek() gives.
* @return void
*/
function seek ($seekPosition, $whence = SEEK_SET);
+
+ /**
+ * "Getter" for seek position
+ *
+ * @return $seekPosition Seek position
+ */
+ function getSeekPosition ();
}
// [EOF]
* @return $seekPosition Current seek position
* @throws UnsupportedOperationException If this method is called
*/
- public function getPosition () {
+ public function getSeekPosition () {
throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
}
* @return $seekPosition Current seek position
* @throws UnsupportedOperationException If this method is called
*/
- public function getPosition () {
+ public function getSeekPosition () {
throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
}
* @return $seekPosition Current seek position
* @throws UnsupportedOperationException If this method is called
*/
- public function getPosition () {
+ public function getSeekPosition () {
throw new UnsupportedOperationException(array($this, __FUNCTION__), self::EXCEPTION_UNSPPORTED_OPERATION);
}
*
* @return $seekPosition Current seek position
*/
- public final function getPosition () {
+ public final function getSeekPosition () {
return ftell($this->getPointer());
}
*/
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);
* @return $seekPosition Current seek position
* @todo 0% done
*/
- public function getPosition () {
+ public function getSeekPosition () {
$this->partialStub();
}
* @return $seekPosition Current seek position
* @todo 0% done
*/
- public function getPosition () {
+ public function getSeekPosition () {
$this->partialStub();
}