class Update (View source)

The Update class handles the process of updating Automad using the dashboard.

Methods

static string
getVersion()

Download version file and extract version number.

static array
run()

Run the actual update.

static boolean
supported()

Test if the server supports all required functions.

Details

static string getVersion()

Download version file and extract version number.

Return Value

string Version number or false on error.

static array run()

Run the actual update.

Return Value

array The $output array (AJAX response)

static boolean supported()

Test if the server supports all required functions.

Return Value

boolean True on success, false on error