Moodle  2.2.1
http://www.collinsharper.com
Zend_Gdata_App_MediaEntry Class Reference
Inheritance diagram for Zend_Gdata_App_MediaEntry:
Collaboration diagram for Zend_Gdata_App_MediaEntry:

Public Member Functions

 __construct ($element=null, $mediaSource=null)
 encode ()
 getMediaSource ()
 setMediaSource ($value)

Protected Attributes

 $_mediaSource = null

Detailed Description

Definition at line 48 of file MediaEntry.php.


Constructor & Destructor Documentation

__construct ( element = null,
mediaSource = null 
)

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

Parameters:
DOMElement$element(optional) DOMElement from which this object should be constructed.

Definition at line 64 of file MediaEntry.php.

Here is the call graph for this function:


Member Function Documentation

encode ( )

Return the MIME multipart representation of this MediaEntry.

Returns:
string|Zend_Gdata_MediaMimeStream The MIME multipart representation of this MediaEntry. If the entry consisted only of XML, a string is returned.

Reimplemented from Zend_Gdata_App_Base.

Definition at line 77 of file MediaEntry.php.

Here is the call graph for this function:

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

Returns:
Zend_Gdata_App_MediaSource The attached MediaSource/file

Definition at line 96 of file MediaEntry.php.

Here is the caller graph for this function:

setMediaSource ( value)

Set the MediaSource object (file) for this MediaEntry

Parameters:
Zend_Gdata_App_MediaSource$valueThe attached MediaSource/file
Returns:
Zend_Gdata_App_MediaEntry Provides a fluent interface

Definition at line 107 of file MediaEntry.php.


Field Documentation

$_mediaSource = null [protected]

Definition at line 55 of file MediaEntry.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations