lib/ezutils/classes/ezmimetype.php
File containing the eZMimeType class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- lib
- Version
- 4.6.0
\eZMimeType
Package: lib
File containing the eZMimeType class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Properties


$QuickContentMatch= 'array(
array( array( 0, 'string', 'GIF87a', 'image/gif' ),
array( 0, 'string', 'GIF89a', 'image/gif' ) )
)'
Default value
array(
array( array( 0, 'string', 'GIF87a', 'image/gif' ),
array( 0, 'string', 'GIF89a', 'image/gif' ) )
)
Details- Type
- n/a
Methods


changeBasename(
$mimeInfo, $basename
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$mimeInfo | ||
$basename |


changeDirectoryPath(
$mimeInfo, $dirpath
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$mimeInfo | ||
$dirpath |


changeFileData(
$mimeInfo, $dirpath
=
false, $basename
=
false, $suffix
=
false, $filename
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$mimeInfo | ||
$dirpath | ||
$basename | ||
$suffix | ||
$filename |


changeMIMEType(
$mimeInfo, $mimetype
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$mimeInfo | ||
$mimetype |


defaultValue(
$url, $returnDefault
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$url | ||
$returnDefault |


findByBuffer(
$buffer, $length
=
false, $offset
=
false, $url
=
false, $returnDefault
=
true
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$buffer | ||
$length | ||
$offset | ||
$url | ||
$returnDefault |


findByFileContents(
$url, $returnDefault
=
true
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$url | ||
$returnDefault |


findByName(
$mimeName, $returnDefault
=
true
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$mimeName | ||
$returnDefault |


findByURL(
$url, $returnDefault
=
true
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$url | ||
$returnDefault |


instance(
)
:
\eZMimeType
static
Returns a shared instance of the eZMimeType class.
Returns
Type | Description |
---|---|
\eZMimeType |


preparePrefixList(
$prefixList, $mimeList
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$prefixList | ||
$mimeList |