\Installer\UtilityPackageUploader

Used to upload plugin packages to the server.

Summary

Methods
Properties
Constants
__construct()
upload()
dst()
errors()
No public properties found
No constants found
_error()
$_errors
$_package
$_dst
N/A
No private methods found
No private properties found
N/A

Properties

$_errors

$_errors : array

List of error messages.

Type

array

$_package

$_package : array

Information from file's POST form.

Type

array

$_dst

$_dst : string

Full path to uploaded ZIP package.

Type

string

Methods

__construct()

__construct(array $package)

Constructor.

Parameters

array $package

Incoming data from POST

upload()

upload() : boolean

Uploads a ZIP package to the server.

Returns

boolean —

True on success

dst()

dst() : string

Gets the full path to the uploaded package.

Returns

string

errors()

errors() : array

Returns a list of all error messages.

Returns

array

_error()

_error(string $message) : void

Registers an error message.

Parameters

string $message

The message