MediaSource.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Gdata
  17. * @subpackage App
  18. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. * @version $Id$
  21. */
  22. /**
  23. * Interface for defining data that can be encoded and sent over the network.
  24. *
  25. * @category Zend
  26. * @package Zend_Gdata
  27. * @subpackage App
  28. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  29. * @license http://framework.zend.com/license/new-bsd New BSD License
  30. */
  31. interface Zend_Gdata_App_MediaSource
  32. {
  33. /**
  34. * Return a byte stream representation of this object.
  35. *
  36. * @return string
  37. */
  38. public function encode();
  39. /**
  40. * Set the content type for the file attached (example image/png)
  41. *
  42. * @param string $value The content type
  43. * @return Zend_Gdata_App_MediaFileSource Provides a fluent interface
  44. */
  45. public function setContentType($value);
  46. /**
  47. * The content type for the file attached (example image/png)
  48. *
  49. * @return string The content type
  50. */
  51. public function getContentType();
  52. /**
  53. * Sets the Slug header value. Used by some services to determine the
  54. * title for the uploaded file. A null value indicates no slug header.
  55. *
  56. * @var string The slug value
  57. * @return Zend_Gdata_App_MediaSource Provides a fluent interface
  58. */
  59. public function setSlug($value);
  60. /**
  61. * Returns the Slug header value. Used by some services to determine the
  62. * title for the uploaded file. Returns null if no slug should be used.
  63. *
  64. * @return string The slug value
  65. */
  66. public function getSlug();
  67. }