API - XOOPS 2.5.11 Beta 2
By monxoops.fr
MapperFactory Class Reference

Static Public Member Functions

static selectMapper ($uri, $format=null)
 
static registerMapper ($mapper_class_name, $mime_type, $extension)
 
static getCustomMappers ()
 
static determineFormat ($uri, $format=null)
 
static mimeType ($format)
 
static extractExtension ($uri)
 

Static Protected Attributes

static $mappers = array()
 
static $customMappers = array()
 
static $mimeTable
 

Member Function Documentation

◆ determineFormat()

static determineFormat (   $uri,
  $format = null 
)
static

◆ extractExtension()

static extractExtension (   $uri)
static

◆ getCustomMappers()

static getCustomMappers ( )
static
Here is the caller graph for this function:

◆ mimeType()

static mimeType (   $format)
static

◆ registerMapper()

static registerMapper (   $mapper_class_name,
  $mime_type,
  $extension 
)
static
Here is the caller graph for this function:

◆ selectMapper()

static selectMapper (   $uri,
  $format = null 
)
static

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

Parameters
string$uriFile URI
string$formatFile format (extension or mime-type) or null
Returns
mixed
Here is the caller graph for this function:

Field Documentation

◆ $customMappers

$customMappers = array()
staticprotected

◆ $mappers

$mappers = array()
staticprotected

◆ $mimeTable

$mimeTable
staticprotected
Initial value:
= array(
'image/jpg' => 'JPEG',
'image/jpeg' => 'JPEG',
'image/pjpeg' => 'JPEG',
'image/gif' => 'GIF',
'image/png' => 'PNG',
'image/webp' => 'WEBP'
)

The documentation for this class was generated from the following file: