UploadInterface.int.php 639 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Interface for the import->upload plugins
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. if (! defined('PHPMYADMIN')) {
  9. exit;
  10. }
  11. /**
  12. * Provides a common interface that will have to implemented by all of the
  13. * import->upload plugins.
  14. *
  15. * @package PhpMyAdmin
  16. */
  17. interface UploadInterface
  18. {
  19. /**
  20. * Gets the specific upload ID Key
  21. *
  22. * @return string ID Key
  23. */
  24. public static function getIdKey();
  25. /**
  26. * Returns upload status.
  27. *
  28. * @param string $id upload id
  29. *
  30. * @return array|null
  31. */
  32. public static function getUploadStatus($id);
  33. }
  34. ?>