Internals
[ class tree: Internals ] [ index: Internals ] [ all elements ]

Class: WideImage_MapperFactory

Source Location: /MapperFactory.php

Class Overview


Mapper factory


Author(s):

Variables

Methods



Class Details

[line 37]
Mapper factory



Tags:

abstract:  


[ Top ]


Class Variables

static $mappers = array()

[line 39]



Tags:

access:  protected

Type:   mixed


[ Top ]

static $mimeTable = array(
         'image/jpg' => 'JPEG', 
         'image/jpeg' => 'JPEG', 
         'image/pjpeg' => 'JPEG', 
         'image/gif' => 'GIF', 
         'image/png' => 'PNG',
         'image/bmp' => 'BMP'
         )

[line 41]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


static method determineFormat [line 81]

static void determineFormat( $uri, [ $format = null])



Parameters:

   $uri  
   $format  

[ Top ]

static method extractExtension [line 106]

static void extractExtension( $uri)



Parameters:

   $uri  

[ Top ]

static method mimeType [line 101]

static void mimeType( $format)



Parameters:

   $format  

[ Top ]

static method selectMapper [line 57]

static WideImage_Mapper selectMapper( string $uri, [string $format = null])

Returns a mapper, based on the $uri and $format



Parameters:

string   $uri   File URI
string   $format   File format (extension or mime-type) or null

[ Top ]


Documentation generated on Sat, 31 Jul 2010 20:37:58 +0200 by phpDocumentor 1.4.2