Inheritances
Files
Overview
FRAMES
NO FRAMES

Class Zend_Gdata_App_MediaFileSource

Zend_Gdata_App_BaseMediaSource
|
Zend_Gdata_App_MediaFileSource
Zend_Gdata
|-Zend_Gdata_App
|- class Zend_Gdata_App_MediaFileSource extends Zend_Gdata_App_BaseMediaSource
Concrete class to use a file handle as an attachment within a MediaEntry.
CategoryZend
PackageZend_Gdata
SubpackageApp
CopyrightCopyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
Licensehttp://framework.zend.com/license/new-bsd New BSD License

Summary

Instance fields
# $_contentType The content type for the file attached (example image/png)
# $_filename The filename which is represented
Instance methods
+ __construct() Create a new Zend_Gdata_App_MediaFileSource object
+ __toString() Alias for getFilename()
+ encode() Return the MIME multipart representation of this MediaEntry
+ getContentType() The content type for the file attached (example image/png)
+ getFilename() Get the filename associated with this reader
+ setContentType() Set the content type for the file attached (example image/png)
+ setFilename() Set the filename which is to be read

Details

Instance fields

$_contentType
protected $_contentType = null
The content type for the file attached (example image/png)
Var string
$_filename
protected $_filename = null
The filename which is represented
Var string

Instance methods

__construct()
public function __construct( $filename)
Create a new Zend_Gdata_App_MediaFileSource object.
Parameters
string $filename The name of the file to read from.
__toString()
public function __toString( )
Alias for getFilename().
Returns string
encode()
public function encode( )
Return the MIME multipart representation of this MediaEntry.
Returns string
getContentType()
public function getContentType( )
The content type for the file attached (example image/png)
Returns string The content type
getFilename()
public function getFilename( )
Get the filename associated with this reader.
Returns string
setContentType()
public function setContentType( $value)
Set the content type for the file attached (example image/png)
Parameters
string $value The content type
Returns Zend_Gdata_App_MediaFileSource Provides a fluent interface
setFilename()
public function setFilename( $value)
Set the filename which is to be read.
Parameters
string $value The desired file handle.
Returns Zend_Gdata_App_MediaFileSource Provides a fluent interface.