final class Ajax (View source)

Handles plugins that show the upload progress.

Constants

SESSION_KEY

For differentiating array in $_SESSION variable

Methods

static string
uploadProgressSetup()

No description

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 true
nopluginCheck()

Default plugin for handling import.

static void
status(string $id)

The function outputs json encoded status of uploaded.

Details

static string uploadProgressSetup()

No description

Return Value

string

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 true nopluginCheck()

Default plugin for handling import.

If no other plugin is available, noplugin is used.

Return Value

true

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