API Documentation

Gdata/App/MediaFileSource.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Gdata
subpackage
App
version
$Id: MediaFileSource.php 23775 2011-03-01 17:25:24Z ralph $
Classes
Zend_Gdata_App_MediaFileSource

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Gdata_App_MediaFileSource

Extends from
Zend_Gdata_App_BaseMediaSource
category
Zend
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Gdata
subpackage
App
Properties
$_filename
$_contentType
Methods
__construct
encode
getFilename
setFilename
getContentType
setContentType
__toString

Description

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

Properties

$_contentType

string $_contentType = 'null'

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

Details

$_filename

string $_filename = 'null'

The filename which is represented

Details

Methods

__construct

__construct( string $filename ) :

Create a new Zend_Gdata_App_MediaFileSource object.

Arguments
$filename
string
The name of the file to read from.
Details

__toString

__toString( ) : string

Alias for getFilename().

Output
string
Details

encode

encode( ) : string

Return the MIME multipart representation of this MediaEntry.

Output
string
Details

getContentType

getContentType( ) : string

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

Output
string
The content type
Details

getFilename

getFilename( ) : string

Get the filename associated with this reader.

Output
string
Details

setContentType

setContentType( string $value ) : Zend_Gdata_App_MediaFileSource

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

Arguments
$value
string
The content type
Output
Zend_Gdata_App_MediaFileSource
Provides a fluent interface
Details

setFilename

setFilename( string $value ) : Zend_Gdata_App_MediaFileSource

Set the filename which is to be read.

Arguments
$value
string
The desired file handle.
Output
Zend_Gdata_App_MediaFileSource
Provides a fluent interface.
Details
Documentation was generated by DocBlox.