Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Gdata_App_MediaFileSource Class Reference

Public Member Functions

 __construct ($filename)
 Create a new Zend_Gdata_App_MediaFileSource object.
 
 encode ()
 Return the MIME multipart representation of this MediaEntry.
 
 getFilename ()
 Get the filename associated with this reader.
 
 setFilename ($value)
 Set the filename which is to be read.
 
 getContentType ()
 The content type for the file attached (example image/png)
 
 setContentType ($value)
 Set the content type for the file attached (example image/png)
 
 __toString ()
 Alias for getFilename().
 
- Public Member Functions inherited from Zend_Gdata_App_BaseMediaSource
 getContentType ()
 The content type for the attached file (example image/png)
 
 setContentType ($value)
 Set the content type for the file attached (example image/png)
 
 getSlug ()
 Returns the Slug header value.
 
 setSlug ($value)
 
 __get ($name)
 Magic getter to allow acces like $source->foo to call $source->getFoo() Alternatively, if no getFoo() is defined, but a $_foo protected variable is defined, this is returned.
 
 __set ($name, $val)
 Magic setter to allow acces like $source->foo='bar' to call $source->setFoo('bar') automatically.
 
 __isset ($name)
 Magic __isset method.
 

Protected Attributes

 $_filename = null
 
 $_contentType = null
 
- Protected Attributes inherited from Zend_Gdata_App_BaseMediaSource
 $_contentType = null
 
 $_slug = null
 

Constructor & Destructor Documentation

__construct (   $filename)

Create a new Zend_Gdata_App_MediaFileSource object.

Parameters
string$filenameThe name of the file to read from.

Member Function Documentation

__toString ( )

Alias for getFilename().

Returns
string
encode ( )

Return the MIME multipart representation of this MediaEntry.

Returns
string
Exceptions
Zend_Gdata_App_IOException

Implements Zend_Gdata_App_MediaSource.

getContentType ( )

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

Returns
string The content type

Implements Zend_Gdata_App_MediaSource.

getFilename ( )

Get the filename associated with this reader.

Returns
string
setContentType (   $value)

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

Parameters
string$valueThe content type
Returns
Zend_Gdata_App_MediaFileSource Provides a fluent interface

Implements Zend_Gdata_App_MediaSource.

setFilename (   $value)

Set the filename which is to be read.

Parameters
string$valueThe desired file handle.
Returns
Zend_Gdata_App_MediaFileSource Provides a fluent interface.

Member Data Documentation

$_contentType = null
protected
$_filename = null
protected