MediaSource.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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-2009 Zend Technologies USA Inc. (http://www.zend.com)
  19. * @license http://framework.zend.com/license/new-bsd New BSD License
  20. */
  21. /**
  22. * Interface for defining data that can be encoded and sent over the network.
  23. *
  24. * @category Zend
  25. * @package Zend_Gdata
  26. * @subpackage App
  27. * @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
  28. * @license http://framework.zend.com/license/new-bsd New BSD License
  29. */
  30. interface Zend_Gdata_App_MediaSource
  31. {
  32. /**
  33. * Return a byte stream representation of this object.
  34. *
  35. * @return string
  36. */
  37. public function encode();
  38. /**
  39. * Set the content type for the file attached (example image/png)
  40. *
  41. * @param string $value The content type
  42. * @return Zend_Gdata_App_MediaFileSource Provides a fluent interface
  43. */
  44. public function setContentType($value);
  45. /**
  46. * The content type for the file attached (example image/png)
  47. *
  48. * @return string The content type
  49. */
  50. public function getContentType();
  51. /**
  52. * Sets the Slug header value. Used by some services to determine the
  53. * title for the uploaded file. A null value indicates no slug header.
  54. *
  55. * @var string The slug value
  56. * @return Zend_Gdata_App_MediaSource Provides a fluent interface
  57. */
  58. public function setSlug($value);
  59. /**
  60. * Returns the Slug header value. Used by some services to determine the
  61. * title for the uploaded file. Returns null if no slug should be used.
  62. *
  63. * @return string The slug value
  64. */
  65. public function getSlug();
  66. }