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

Public Member Functions

 __construct ($filename)
 encode ()
 getFilename ()
 setFilename ($value)
 getContentType ()
 setContentType ($value)
 __toString ()

Protected Attributes

 $_filename = null
 $_contentType = null

Detailed Description

Definition at line 38 of file MediaFileSource.php.


Constructor & Destructor Documentation

__construct ( filename)

Create a new Zend_Gdata_App_MediaFileSource object.

Parameters:
string$filenameThe name of the file to read from.

Definition at line 59 of file MediaFileSource.php.

Here is the call graph for this function:


Member Function Documentation

Alias for getFilename().

Returns:
string

Definition at line 141 of file MediaFileSource.php.

Here is the call graph for this function:

encode ( )

Return the MIME multipart representation of this MediaEntry.

Returns:
string
Exceptions:
Zend_Gdata_App_IOException

Implements Zend_Gdata_App_MediaSource.

Definition at line 70 of file MediaFileSource.php.

Here is the call graph for this function:

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

Returns:
string The content type

Reimplemented from Zend_Gdata_App_BaseMediaSource.

Definition at line 119 of file MediaFileSource.php.

Get the filename associated with this reader.

Returns:
string

Definition at line 97 of file MediaFileSource.php.

Here is the caller graph for this function:

setContentType ( value)

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

Parameters:
string$valueThe content type
Returns:
Zend_Gdata_App_MediaFileSource Provides a fluent interface

Reimplemented from Zend_Gdata_App_BaseMediaSource.

Definition at line 130 of file MediaFileSource.php.

setFilename ( value)

Set the filename which is to be read.

Parameters:
string$valueThe desired file handle.
Returns:
Zend_Gdata_App_MediaFileSource Provides a fluent interface.

Definition at line 108 of file MediaFileSource.php.

Here is the caller graph for this function:


Field Documentation

$_contentType = null [protected]

Reimplemented from Zend_Gdata_App_BaseMediaSource.

Definition at line 52 of file MediaFileSource.php.

$_filename = null [protected]

Definition at line 45 of file MediaFileSource.php.


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