You are here

function ReadableStreamBackupFile::isOpen in Backup and Migrate 8.4

Is this file open for reading/writing.

Return bool True if the file is open, false if not.

9 calls to ReadableStreamBackupFile::isOpen()
ReadableStreamBackupFile::close in lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php
Close a file when we're done reading/writing.
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.
ReadableStreamBackupFile::readBytes in lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php
Read a line from the file.
ReadableStreamBackupFile::readLine in lib/backup_migrate_core/src/File/ReadableStreamBackupFile.php
Read a single line from the file.

... See full list

File

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

Class

ReadableStreamBackupFile
Class ReadableStreamBackupFile.

Namespace

BackupMigrate\Core\File

Code

function isOpen() {
  return !empty($this->handle) && get_resource_type($this->handle) == 'stream';
}