Class Zend_Gdata_App_MediaFileSource

Description

Concrete class to use a file handle as an attachment within a MediaEntry.

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Gdata/App/MediaFileSource.php (line 38)

Zend_Gdata_App_BaseMediaSource
   |
   --Zend_Gdata_App_MediaFileSource
Variable Summary
 string $_contentType
 string $_filename
Method Summary
 Zend_Gdata_App_MediaFileSource __construct (string $filename)
 string encode ()
 string getContentType ()
 string getFilename ()
 string __toString ()
Variables
string $_contentType = null (line 52)

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

  • access: protected

Redefinition of:
Zend_Gdata_App_BaseMediaSource::$_contentType
The content type for the attached file (example image/png)
string $_filename = null (line 45)

The filename which is represented

  • access: protected

Inherited Variables

Inherited from Zend_Gdata_App_BaseMediaSource

Zend_Gdata_App_BaseMediaSource::$_slug
Methods
Constructor __construct (line 59)

Create a new Zend_Gdata_App_MediaFileSource object.

  • access: public
Zend_Gdata_App_MediaFileSource __construct (string $filename)
  • string $filename: The name of the file to read from.
encode (line 70)

Return the MIME multipart representation of this MediaEntry.

  • throws: Zend_Gdata_App_IOException
  • access: public
string encode ()
getContentType (line 119)

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

  • return: The content type
  • access: public
string getContentType ()

Redefinition of:
Zend_Gdata_App_BaseMediaSource::getContentType()
The content type for the attached file (example image/png)
getFilename (line 97)

Get the filename associated with this reader.

  • access: public
string getFilename ()
setContentType (line 130)

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

  • return: Provides a fluent interface
  • access: public
Zend_Gdata_App_MediaFileSource setContentType (string $value)
  • string $value: The content type

Redefinition of:
Zend_Gdata_App_BaseMediaSource::setContentType()
Set the content type for the file attached (example image/png)
setFilename (line 108)

Set the filename which is to be read.

  • return: Provides a fluent interface.
  • access: public
Zend_Gdata_App_MediaFileSource setFilename (string $value)
  • string $value: The desired file handle.
__toString (line 141)

Alias for getFilename().

  • access: public
string __toString ()

Inherited Methods

Inherited From Zend_Gdata_App_BaseMediaSource

 Zend_Gdata_App_BaseMediaSource::getContentType()
 Zend_Gdata_App_BaseMediaSource::getSlug()
 Zend_Gdata_App_BaseMediaSource::setContentType()
 Zend_Gdata_App_BaseMediaSource::setSlug()
 Zend_Gdata_App_BaseMediaSource::__get()
 Zend_Gdata_App_BaseMediaSource::__isset()
 Zend_Gdata_App_BaseMediaSource::__set()

Documentation generated on Mon, 21 Jun 2010 15:33:13 -0400 by phpDocumentor 1.4.3