class RemoteFile (View source)

The remote file class.

Properties

private $localCopy The local copy in the downloads directory of the external file.

Methods

__construct(string $url)

The constructor.

string
getLocalCopy()

Returns the local copy's path.

string
download(string $url)

Downloads the remote file to the cache/downloads directory.

Details

__construct(string $url)

The constructor.

Parameters

string $url

string getLocalCopy()

Returns the local copy's path.

Return Value

string The local copy's path.

private string download(string $url)

Downloads the remote file to the cache/downloads directory.

Parameters

string $url

Return Value

string The local copy's file path or false