2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Provides upload functionalities for the import plugins
8 if (! defined('PHPMYADMIN')) {
12 /* Get the transformations interface */
13 require_once 'libraries/plugins/UploadInterface.int.php';
16 * Implementation for no plugin
20 class UploadNoplugin
implements UploadInterface
23 * Gets the specific upload ID Key
25 * @return string ID Key
27 public static function getIdKey()
33 * Returns upload status.
35 * This is implementation when no webserver support exists,
36 * so it returns just zeroes.
38 * @param string $id upload id
42 public static function getUploadStatus($id)
46 if (trim($id) == "") {
49 if (! array_key_exists($id, $_SESSION[$SESSION_KEY])) {
50 $_SESSION[$SESSION_KEY][$id] = array(
56 'plugin' => UploadNoplugin
::getIdKey()
59 $ret = $_SESSION[$SESSION_KEY][$id];