Class MIMETypes

Description

Functions for figuring out MIME types.

  • version: $Id: MIMETypes.class.php,v 1.11 2007/09/04 20:25:54 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College

Located in /harmoni/core/utilities/MIMETypes.class.php (line 13)


	
			
Method Summary
obj MIMETypes ()
void assignConfiguration (object Properties $configuration)
void assignOsidContext (mixed $context, object OsidContext $context )
string getExtensionForMIMEType (string $type)
string getMIMETypeForExtension (string $extension)
string getMIMETypeForFileName (string $filename)
object OsidContext getOsidContext ()
Methods
Constructor MIMETypes (line 22)

Constructor, set up our mapping of known types.

  • since: 10/22/04
  • access: public
obj MIMETypes ()
assignConfiguration (line 227)

Assign the configuration of this Manager. Valid configuration options are as

follows: database_index integer database_name string

  • access: public
  • throws: object OsidException An exception with one of the following messages defined in org.osid.OsidException: OPERATION_FAILED, PERMISSION_DENIED, CONFIGURATION_ERROR, UNIMPLEMENTED, NULL_ARGUMENT
void assignConfiguration (object Properties $configuration)
  • object Properties $configuration: (original type: java.util.Properties)
assignOsidContext (line 255)

Assign the context of this OsidManager.

  • access: public
  • throws: object OsidException An exception with one of the following messages defined in org.osid.OsidException: NULL_ARGUMENT
void assignOsidContext (mixed $context, object OsidContext $context )
  • object OsidContext $context
getExtensionForMIMEType (line 317)

Get the first known extension for a given MIME Type.

  • since: 10/20/04
  • access: public
string getExtensionForMIMEType (string $type)
  • string $type
getMIMETypeForExtension (line 286)

Get the MIME Type for a particular extension.

  • static:
  • since: 10/20/04
  • access: public
string getMIMETypeForExtension (string $extension)
  • string $extension
getMIMETypeForFileName (line 267)

Get the MIME Type for the specified filename.

  • since: 10/20/04
  • access: public
string getMIMETypeForFileName (string $filename)
  • string $filename
getOsidContext (line 240)

Return context of this OsidManager.

  • access: public
  • throws: object OsidException
object OsidContext getOsidContext ()

Documentation generated on Wed, 19 Sep 2007 10:25:06 -0400 by phpDocumentor 1.3.0RC3