abstract |
---|
Mapper factory
Methods | ||
---|---|---|
public
static
|
selectMapper(string $uri, string $format = null): mixed
|
# |
public
static
|
registerMapper($mapper_class_name, $mime_type, $extension)
|
# |
public
static
|
getCustomMappers()
|
# |
public
static
|
determineFormat($uri, $format = null)
|
# |
public
static
|
mimeType($format)
|
# |
public
static
|
extractExtension($uri)
|
# |
Properties | |||
---|---|---|---|
protected
static
|
|
$mappers = []
|
# |
protected
static
|
|
$customMappers = []
|
# |
protected
static
|
|
$mimeTable = [
'image/jpg' => 'JPEG',
'image/jpeg' => 'JPEG',
'image/pjpeg' => 'JPEG',
'image/gif' => 'GIF',
'image/png' => 'PNG',
'image/webp' => 'WEBP',
]
|
# |