You are here

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

Close a file when we're done reading/writing.

Overrides BackupFileReadableInterface::close

2 calls to ReadableStreamBackupFile::close()
ReadableStreamBackupFile::__destruct in src/Core/File/ReadableStreamBackupFile.php
Destructor.
WritableStreamBackupFile::close in src/Core/File/WritableStreamBackupFile.php
Update the file time and size when the file is closed.
1 method overrides ReadableStreamBackupFile::close()
WritableStreamBackupFile::close in src/Core/File/WritableStreamBackupFile.php
Update the file time and size when the file is closed.

File

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

Class

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

Namespace

Drupal\backup_migrate\Core\File

Code

public function close() {
  if ($this
    ->isOpen()) {
    fclose($this->handle);
    $this->handle = NULL;
  }
}