UploadInterface.php 650 B

1234567891011121314151617181920212223242526272829303132333435
  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. declare(strict_types=1);
  9. namespace PhpMyAdmin\Plugins;
  10. /**
  11. * Provides a common interface that will have to implemented by all of the
  12. * import->upload plugins.
  13. *
  14. * @package PhpMyAdmin
  15. */
  16. interface UploadInterface
  17. {
  18. /**
  19. * Gets the specific upload ID Key
  20. *
  21. * @return string ID Key
  22. */
  23. public static function getIdKey();
  24. /**
  25. * Returns upload status.
  26. *
  27. * @param string $id upload id
  28. *
  29. * @return array|null
  30. */
  31. public static function getUploadStatus($id);
  32. }