source: trunk/www.guidonia.net/wp/wp-content/plugins/webtv/Drivers/Zend/Gdata/App/MediaSource.php@ 44

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