Interface for defining data that can be encoded and sent over the network.

category Zend
package Zend_Gdata
subpackage App
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Return a byte stream representation of this object.

encode() : string

Returns

string

The content type for the file attached (example image/png)

getContentType() : string

Returns

stringThe content type

Returns the Slug header value. Used by some services to determine the title for the uploaded file. Returns null if no slug should be used.

getSlug() : string

Returns

stringThe slug value

Set the content type for the file attached (example image/png)

setContentType(string $value) : \Zend_Gdata_App_MediaFileSource

Parameters

$value

string

The content type

Returns

\Zend_Gdata_App_MediaFileSourceProvides a fluent interface

Sets the Slug header value. Used by some services to determine the title for the uploaded file. A null value indicates no slug header.

setSlug($value) : \Zend_Gdata_App_MediaSource
var

The slug value

Parameters

$value

Returns

\Zend_Gdata_App_MediaSourceProvides a fluent interface