Gdata/App/MediaEntry.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_MediaEntry

Package: Zend_Gdata\App
Concrete class for working with Atom entries containing multi-part data.
Parent(s)
\Zend_Gdata_App_Entry < \Zend_Gdata_App_FeedEntryParent < \Zend_Gdata_App_Base
Children
\Zend_Gdata_Entry
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotected\Zend_Gdata_App_MediaSource $_mediaSource = null
The attached MediaSource/file
Default valuenullDetails
Type
\Zend_Gdata_App_MediaSource

Methods

methodpublic__construct(\DOMElement $element = null,  $mediaSource = null) : void

Constructs a new MediaEntry, representing XML data and optional file to upload

Parameters
NameTypeDescription
$element\DOMElement

(optional) DOMElement from which this

     object should be constructed.
$mediaSource
methodpublicencode() : string | \Zend_Gdata_MediaMimeStream

Return the MIME multipart representation of this MediaEntry.

Returns
TypeDescription
string | \Zend_Gdata_MediaMimeStreamThe MIME multipart representation of this MediaEntry. If the entry consisted only of XML, a string is returned.
methodpublicgetMediaSource() : \Zend_Gdata_App_MediaSource

Return the MediaSource object representing the file attached to this MediaEntry.

Returns
TypeDescription
\Zend_Gdata_App_MediaSourceThe attached MediaSource/file
methodpublicsetMediaSource(\Zend_Gdata_App_MediaSource $value) : \Zend_Gdata_App_MediaEntry

Set the MediaSource object (file) for this MediaEntry

Parameters
NameTypeDescription
$value\Zend_Gdata_App_MediaSource

The attached MediaSource/file

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