LoaderInterface
in
Interface for classes that can load local or remote files.
Table of Contents
Methods
- __toString() : string
- The string representation of this object must be the file path (local or remote).
- getData() : string
- Get the file binary contents.
- getPath() : string
- Get the path of the file (local or remote).
- hasReadData() : bool
- Is the binary content already loaded?
- isLocalFile() : bool
- Is this a local file.
Methods
__toString()
The string representation of this object must be the file path (local or remote).
public
__toString() : string
Return values
stringgetData()
Get the file binary contents.
public
getData() : string
Return values
stringgetPath()
Get the path of the file (local or remote).
public
getPath() : string
Return values
stringhasReadData()
Is the binary content already loaded?
public
hasReadData() : bool
Return values
boolisLocalFile()
Is this a local file.
public
isLocalFile() : bool