You are here

function ReadableStreamBackupFile::rewind in Backup and Migrate 8.4

Rewind the file handle to the start of the file.

Overrides BackupFileReadableInterface::rewind

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

File

lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php, line 178

Class

ReadableStreamBackupFile
Class ReadableStreamBackupFile.

Namespace

BackupMigrate\Core\File

Code

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