API Documentation

Gdata/App/MediaFileSource.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 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 20096 2010-01-06 02:05:09Z bkarwin $
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-2010 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

$_contentType
string
visibility
protected
default
null
final
false
static
false

$_filename

string $_filename = 'null'

The filename which is represented

Details

$_filename
string
visibility
protected
default
null
final
false
static
false

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
visibility
public
final
false
static
false

__toString

__toString( ) : string

Alias for getFilename().

Output
string
Details
visibility
public
final
false
static
false

encode

encode( ) : string

Return the MIME multipart representation of this MediaEntry.

Output
string
Details
visibility
public
final
false
static
false
throws

getContentType

getContentType( ) : string

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

Output
string
The content type
Details
visibility
public
final
false
static
false

getFilename

getFilename( ) : string

Get the filename associated with this reader.

Output
string
Details
visibility
public
final
false
static
false

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
visibility
public
final
false
static
false

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
visibility
public
final
false
static
false
Documentation was generated by DocBlox.