File indexing completed on 2025-03-02 05:29:26
0001 <?php 0002 0003 /** 0004 * Zend Framework 0005 * 0006 * LICENSE 0007 * 0008 * This source file is subject to the new BSD license that is bundled 0009 * with this package in the file LICENSE.txt. 0010 * It is also available through the world-wide-web at this URL: 0011 * http://framework.zend.com/license/new-bsd 0012 * If you did not receive a copy of the license and are unable to 0013 * obtain it through the world-wide-web, please send an email 0014 * to license@zend.com so we can send you a copy immediately. 0015 * 0016 * @category Zend 0017 * @package Zend_Gdata 0018 * @subpackage App 0019 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0020 * @license http://framework.zend.com/license/new-bsd New BSD License 0021 * @version $Id$ 0022 */ 0023 0024 /** 0025 * Interface for defining data that can be encoded and sent over the network. 0026 * 0027 * @category Zend 0028 * @package Zend_Gdata 0029 * @subpackage App 0030 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0031 * @license http://framework.zend.com/license/new-bsd New BSD License 0032 */ 0033 interface Zend_Gdata_App_MediaSource 0034 { 0035 /** 0036 * Return a byte stream representation of this object. 0037 * 0038 * @return string 0039 */ 0040 public function encode(); 0041 0042 /** 0043 * Set the content type for the file attached (example image/png) 0044 * 0045 * @param string $value The content type 0046 * @return Zend_Gdata_App_MediaFileSource Provides a fluent interface 0047 */ 0048 public function setContentType($value); 0049 0050 /** 0051 * The content type for the file attached (example image/png) 0052 * 0053 * @return string The content type 0054 */ 0055 public function getContentType(); 0056 0057 /** 0058 * Sets the Slug header value. Used by some services to determine the 0059 * title for the uploaded file. A null value indicates no slug header. 0060 * 0061 * @var string The slug value 0062 * @return Zend_Gdata_App_MediaSource Provides a fluent interface 0063 */ 0064 public function setSlug($value); 0065 0066 /** 0067 * Returns the Slug header value. Used by some services to determine the 0068 * title for the uploaded file. Returns null if no slug should be used. 0069 * 0070 * @return string The slug value 0071 */ 0072 public function getSlug(); 0073 }