Gdata/App/MediaFileSource.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Gdata  
Subpackage
App  
Version
$Id$  

\Zend_Gdata_App_MediaFileSource

Package: Zend_Gdata\App
Concrete class to use a file handle as an attachment within a MediaEntry.
Parent(s)
\Zend_Gdata_App_BaseMediaSource
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedstring $_contentType = null
The content type for the file attached (example image/png)
Default valuenullDetails
Type
string
>VPropertyprotectedstring $_filename = null
The filename which is represented
Default valuenullDetails
Type
string

Methods

methodpublic__construct(string $filename) : void

Create a new Zend_Gdata_App_MediaFileSource object.

Parameters
NameTypeDescription
$filenamestring

The name of the file to read from.

methodpublic__toString() : string

Alias for getFilename().

Returns
TypeDescription
string
methodpublicencode() : string

Return the MIME multipart representation of this MediaEntry.

Returns
TypeDescription
string
Throws
ExceptionDescription
\Zend_Gdata_App_IOException
methodpublicgetContentType() : string

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

Returns
TypeDescription
stringThe content type
methodpublicgetFilename() : string

Get the filename associated with this reader.

Returns
TypeDescription
string
methodpublicsetContentType(string $value) : \Zend_Gdata_App_MediaFileSource

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

Parameters
NameTypeDescription
$valuestring

The content type

Returns
TypeDescription
\Zend_Gdata_App_MediaFileSourceProvides a fluent interface
methodpublicsetFilename(string $value) : \Zend_Gdata_App_MediaFileSource

Set the filename which is to be read.

Parameters
NameTypeDescription
$valuestring

The desired file handle.

Returns
TypeDescription
\Zend_Gdata_App_MediaFileSourceProvides a fluent interface.
Documentation was generated by phpDocumentor 2.2.0 .