AbstractReader implements ReaderInterface
Reader abstract class.
Tags
Interfaces, Classes and Traits
- ReaderInterface
- Reader interface.
Table of Contents
- $fileHandle : bool|resource
- File pointer.
- $readDataOnly : bool
- Read data only?
- canRead() : bool
- Can the current ReaderInterface read the file?
- isReadDataOnly() : bool
- Read data only?
- setReadDataOnly() : self
- Set read data only.
- openFile() : resource
- Open file for reading.
Properties
$fileHandle
File pointer.
protected
bool|resource
$fileHandle
$readDataOnly
Read data only?
protected
bool
$readDataOnly
= true
Methods
canRead()
Can the current ReaderInterface read the file?
public
canRead(string $filename) : bool
Parameters
- $filename : string
Return values
bool —isReadDataOnly()
Read data only?
public
isReadDataOnly() : bool
Return values
bool —setReadDataOnly()
Set read data only.
public
setReadDataOnly([bool $value = true ]) : self
Parameters
- $value : bool = true
Return values
self —openFile()
Open file for reading.
protected
openFile(string $filename) : resource
Parameters
- $filename : string