final class Ajax (View source)

Handles plugins that show the upload progress.

Methods

static array
uploadProgressSetup()

Sets up some variables for upload progress

static bool
progressCheck()

Checks if PhpMyAdmin\Plugins\Import\Upload\UploadProgress bar extension is available.

static bool
sessionCheck()

Checks if PHP 5.4 session upload-progress feature is available.

static bool
nopluginCheck()

Default plugin for handling import.

static void
status(string $id)

The function outputs json encoded status of uploaded.

Details

static array uploadProgressSetup()

Sets up some variables for upload progress

Return Value

array

static bool progressCheck()

Checks if PhpMyAdmin\Plugins\Import\Upload\UploadProgress bar extension is available.

Return Value

bool

static bool sessionCheck()

Checks if PHP 5.4 session upload-progress feature is available.

Return Value

bool

static bool nopluginCheck()

Default plugin for handling import.

If no other plugin is available, noplugin is used.

Return Value

bool

static void status(string $id)

The function outputs json encoded status of uploaded.

It uses PMA_getUploadStatus, which is defined in plugin's file.

Parameters

string $id

ID of transfer, usually $upload_id

Return Value

void