HumHub Documentation (unofficial)

LoaderInterface

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
string

getData()

Get the file binary contents.

public getData() : string
Return values
string

getPath()

Get the path of the file (local or remote).

public getPath() : string
Return values
string

hasReadData()

Is the binary content already loaded?

public hasReadData() : bool
Return values
bool

isLocalFile()

Is this a local file.

public isLocalFile() : bool
Return values
bool

        
On this page

Search results