\Colibri\HelpersMimeType

Mime типы

Summary

Methods
Properties
Constants
__construct()
__get()
Create()
GetType()
$data
$isCapable
$isValid
$isImage
$isAudio
$isVideo
$isViewable
$isFlashVideo
$isFlash
$type
No constants found
No protected methods found
$mime_types
$browserCapableTypes
N/A
No private methods found
$_type
N/A

Properties

$data

$data : string

Type

string

$isCapable

$isCapable : boolean

Type

boolean

$isValid

$isValid : boolean

Type

boolean

$isImage

$isImage : boolean

Type

boolean

$isAudio

$isAudio : boolean

Type

boolean

$isVideo

$isVideo : boolean

Type

boolean

$isViewable

$isViewable : boolean

Type

boolean

$isFlashVideo

$isFlashVideo : boolean

Type

boolean

$isFlash

$isFlash : boolean

Type

boolean

$type

$type : string

Type

string

$mime_types

$mime_types : array

Список MIME типов

Type

array

$browserCapableTypes

$browserCapableTypes : array

Список типов, совместимых с браузерами

Type

array

$_type

$_type : string

Тип файла

Type

string

Methods

__construct()

__construct(string  $type) 

Конструктор

Parameters

string $type

тип файла

__get()

__get(string  $field) : mixed

Геттер

Parameters

string $field

Returns

mixed

Create()

Create(string  $filename) : \Colibri\Helpers\MimeType

Статический конструктор

Parameters

string $filename

Returns

\Colibri\Helpers\MimeType

GetType()

GetType(string  $mimetype) : string

Возвращает тип файла по Mime типu

Parameters

string $mimetype

Returns

string