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

Public Member Functions

 getContentType ()
 setContentType ($value)
 getSlug ()
 setSlug ($value)
 __get ($name)
 __set ($name, $val)
 __isset ($name)

Protected Attributes

 $_contentType = null
 $_slug = null

Detailed Description

Definition at line 38 of file BaseMediaSource.php.


Member Function Documentation

__get ( name)

Magic getter to allow acces like $source->foo to call $source->getFoo() Alternatively, if no getFoo() is defined, but a $_foo protected variable is defined, this is returned.

TODO Remove ability to bypass getFoo() methods??

Parameters:
string$nameThe variable name sought

Definition at line 111 of file BaseMediaSource.php.

__isset ( name)

Magic __isset method

Parameters:
string$name

Definition at line 154 of file BaseMediaSource.php.

__set ( name,
val 
)

Magic setter to allow acces like $source->foo='bar' to call $source->setFoo('bar') automatically.

Alternatively, if no setFoo() is defined, but a $_foo protected variable is defined, this is returned.

Parameters:
string$name
string$value

Definition at line 135 of file BaseMediaSource.php.

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

Returns:
string The content type

Implements Zend_Gdata_App_MediaSource.

Reimplemented in Zend_Gdata_App_MediaFileSource.

Definition at line 62 of file BaseMediaSource.php.

getSlug ( )

Returns the Slug header value. Used by some services to determine the title for the uploaded file. Returns null if no slug should be used.

Returns:
string

Implements Zend_Gdata_App_MediaSource.

Definition at line 85 of file BaseMediaSource.php.

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

Implements Zend_Gdata_App_MediaSource.

Reimplemented in Zend_Gdata_App_MediaFileSource.

Definition at line 73 of file BaseMediaSource.php.

setSlug ( value)

Implements Zend_Gdata_App_MediaSource.

Definition at line 96 of file BaseMediaSource.php.


Field Documentation

$_contentType = null [protected]

Reimplemented in Zend_Gdata_App_MediaFileSource.

Definition at line 46 of file BaseMediaSource.php.

$_slug = null [protected]

Definition at line 55 of file BaseMediaSource.php.


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