Abstract Class Zend_Gdata_App_BaseMediaSource

Description

Implements interfaces:

Concrete class to use a file handle as an attachment within a MediaEntry.

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • abstract:
  • license: New BSD License

Located in /Gdata/App/BaseMediaSource.php (line 38)


	
			
Direct descendents
Class Description
 class Zend_Gdata_App_MediaFileSource Concrete class to use a file handle as an attachment within a MediaEntry.
Variable Summary
 string $_contentType
 string $_slug
Method Summary
 string getContentType ()
 string getSlug ()
 void __get (string $name)
 void __isset (string $name)
 void __set (string $name,  $val, string $value)
Variables
string $_contentType = null (line 46)

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

  • access: protected

Redefined in descendants as:
string $_slug = null (line 55)

The slug header value representing the attached file title, or null if no slug should be used. The slug header is only necessary in some cases, usually when a multipart upload is not being performed.

  • access: protected
Methods
getContentType (line 62)

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

  • return: The content type
  • access: public
string getContentType ()

Implementation of:
Zend_Gdata_App_MediaSource::getContentType()
The content type for the file attached (example image/png)

Redefined in descendants as:
getSlug (line 85)

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.

  • access: public
string getSlug ()

Implementation of:
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.
setContentType (line 73)

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

  • return: Provides a fluent interface
  • access: public
Zend_Gdata_App_MediaFileSource setContentType (string $value)
  • string $value: The content type

Implementation of:
Zend_Gdata_App_MediaSource::setContentType()
Set the content type for the file attached (example image/png)

Redefined in descendants as:
setSlug (line 96)

Sets the Slug header value. Used by some services to determine the title for the uploaded file. A null value indicates no slug header.

  • var: The slug value
  • return: Provides a fluent interface
  • access: public
Zend_Gdata_App_MediaSource setSlug ( $value)
  • $value

Implementation of:
Zend_Gdata_App_MediaSource::setSlug()
Sets the Slug header value. Used by some services to determine the title for the uploaded file. A null value indicates no slug header.
__get (line 111)

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??

  • access: public
void __get (string $name)
  • string $name: The variable name sought
__isset (line 154)

Magic __isset method

  • access: public
void __isset (string $name)
  • string $name
__set (line 135)

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.

  • access: public
void __set (string $name,  $val, string $value)
  • string $name
  • string $value
  • $val

Documentation generated on Mon, 21 Jun 2010 15:08:49 -0400 by phpDocumentor 1.4.3