\um\adminExtensions_Updater

This class handles all functions that changes data structures and moving files

Summary

Methods
Properties
Constants
__construct()
maybe_run_updater()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
get_packages()
get_packages_dir()
get_last_version_upgrade()
set_last_version_upgrade()
$updater_data
N/A

Properties

$updater_data

$updater_data : array

Type

normal

Methods

__construct()

__construct(bool|array  $args = false) : mixed

Parameters

bool|array $args

Returns

mixed

maybe_run_updater()

maybe_run_updater() : mixed

Maybe run upgrade if needed.

Returns

mixed

get_packages()

get_packages() : mixed

Get packages list, based on the files in packages dir.

Returns

mixed

get_packages_dir()

get_packages_dir() : string

Retrieve the directory path where packages are stored for updates.

Returns

string —

The normalized path to the packages' directory.

get_last_version_upgrade()

get_last_version_upgrade() : string

Gets the last version upgrade from options.

Returns

string —

The last version upgrade.

set_last_version_upgrade()

set_last_version_upgrade(string  $version) : mixed

Set the last version upgrade for the updater.

Parameters

string $version

The version to set as the last upgrade version.

Returns

mixed