summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
aea9999)
Signed-off-by: Roland Häder <roland@mxchange.org>
/**
* Rewinds to the beginning of the file
*
/**
* Rewinds to the beginning of the file
*
+ * @return $status Status of this operation
*
* @param $seekPosition Seek position in file
* @param $whence "Seek mode" (see http://de.php.net/fseek)
*
* @param $seekPosition Seek position in file
* @param $whence "Seek mode" (see http://de.php.net/fseek)
+ * @return $tatus Status of this operation
*/
function seek ($seekPosition, $whence = SEEK_SET);
*/
function seek ($seekPosition, $whence = SEEK_SET);
* Seeks to given position
*
* @param $seekPosition Seek position in file
* Seeks to given position
*
* @param $seekPosition Seek position in file
+ * @return $status Status of this operation
*/
function seek ($seekPosition);
*/
function seek ($seekPosition);
* Seeks to given position
*
* @param $seekPosition Seek position in file
* Seeks to given position
*
* @param $seekPosition Seek position in file
+ * @return $status Status of this operation
*/
function seek ($seekPosition);
*/
function seek ($seekPosition);
/**
* Rewinds to the beginning of the file
*
/**
* Rewinds to the beginning of the file
*
+ * @return $status Status of this operation
*/
public function rewind () {
// Rewind the pointer
*/
public function rewind () {
// Rewind the pointer
- assert(rewind($this->getPointer()) === 1);
+ return rewind($this->getPointer());
*
* @param $seekPosition Seek position in file
* @param $whence "Seek mode" (see http://de.php.net/fseek)
*
* @param $seekPosition Seek position in file
* @param $whence "Seek mode" (see http://de.php.net/fseek)
+ * @return $status Status of this operation
*/
public function seek ($seekPosition, $whence = SEEK_SET) {
// Move the file pointer
*/
public function seek ($seekPosition, $whence = SEEK_SET) {
// Move the file pointer
- assert(fseek($this->getPointer(), $seekPosition, $whence) === 0);
+ return fseek($this->getPointer(), $seekPosition, $whence);
/**
* Rewinds to the beginning of the file
*
/**
* Rewinds to the beginning of the file
*
+ * @return $status Status of this operation
*/
public function rewind () {
// Call pointer instance
*/
public function rewind () {
// Call pointer instance
- $this->getPointerInstance()->rewind();
+ return $this->getPointerInstance()->rewind();
}
/**
* Seeks to given position
*
* @param $seekPosition Seek position in file
}
/**
* Seeks to given position
*
* @param $seekPosition Seek position in file
+ * @return $status Status of this operation
*/
public function seek ($seekPosition) {
// Call pointer instance
*/
public function seek ($seekPosition) {
// Call pointer instance
- $this->getPointerInstance()->seek($seekPosition);
+ return $this->getPointerInstance()->seek($seekPosition);
* Seeks to given position
*
* @param $seekPosition Seek position in file
* Seeks to given position
*
* @param $seekPosition Seek position in file
+ * @return $status Status of this operation
*/
public function seek ($seekPosition) {
$this->partialStub('seekPosition=' . $seekPosition);
*/
public function seek ($seekPosition) {
$this->partialStub('seekPosition=' . $seekPosition);