Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Gdata_App_BaseMediaSource Class Reference

Public Member Functions

 getContentType ()
 The content type for the attached file (example image/png)
 
 setContentType ($value)
 Set the content type for the file attached (example image/png)
 
 getSlug ()
 Returns the Slug header value.
 
 setSlug ($value)
 
 __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.
 
 __set ($name, $val)
 Magic setter to allow acces like $source->foo='bar' to call $source->setFoo('bar') automatically.
 
 __isset ($name)
 Magic __isset method.
 
- Public Member Functions inherited from Zend_Gdata_App_MediaSource
 encode ()
 Return a byte stream representation of this object.
 

Protected Attributes

 $_contentType = null
 
 $_slug = null
 

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
__isset (   $name)

Magic __isset method.

Parameters
string$name
__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
getContentType ( )

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

Returns
string The content type

Implements Zend_Gdata_App_MediaSource.

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.

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.

setSlug (   $value)

Member Data Documentation

$_contentType = null
protected
$_slug = null
protected