UploadInterface.php 624 B

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