class FileModel (View source)

The file model.

Methods

static bool
editInfo(string $newName, string $oldName, string $caption, Messenger $Messenger)

Edit file information (file name and caption).

static bool
import(string $importUrl, string $pageUrl, Messenger $Messenger)

Import file from URL.

Details

static bool editInfo(string $newName, string $oldName, string $caption, Messenger $Messenger)

Edit file information (file name and caption).

Parameters

string $newName
string $oldName
string $caption
Messenger $Messenger

Return Value

bool true on success

static bool import(string $importUrl, string $pageUrl, Messenger $Messenger)

Import file from URL.

Parameters

string $importUrl
string $pageUrl
Messenger $Messenger

Return Value

bool true on success