You are here

public function ReadableStreamBackupFile::rewind in Backup and Migrate 5.0.x

Rewind the file handle to the start of the file.

Overrides BackupFileReadableInterface::rewind

2 calls to ReadableStreamBackupFile::rewind()
ReadableStreamBackupFile::openForRead in src/Core/File/ReadableStreamBackupFile.php
Open a file for reading or writing.
ReadableStreamBackupFile::readAll in src/Core/File/ReadableStreamBackupFile.php
Read a line from the file.

File

src/Core/File/ReadableStreamBackupFile.php, line 184

Class

ReadableStreamBackupFile
Uses a readable PHP stream such as a local file.

Namespace

Drupal\backup_migrate\Core\File

Code

public function rewind() {
  if ($this
    ->isOpen()) {
    rewind($this->handle);
  }
}