\CGBetterUploadsFileType

A class to represent file type information.

This module uses this object to calculate an icon and displayable 'type' for a file. The file type information is only used for display purposes.

Summary

Methods
Properties
Constants
with()
$id
$name
$icon
$extensions
$mimetypes
$iorder
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : integer

The internal id of this filetype

Type

integer

$name

$name : string

The displayable name of the filetype

Type

string

$icon

$icon : string

The URL to the icon for this filetype

Type

string

$extensions

$extensions : string

A comma separated list of file extensions that can be used to identify a file of this type.

Type

string

$mimetypes

$mimetypes : string

A comma separated list of mime type strings that can be used to identify a file of this type.

Type

string

$iorder

$iorder : \CGBetterUploads\i9nt

The order of this filetype object to be used in processing, and admin display.

Type

\CGBetterUploads\i9nt

Methods

with()

with(string  $key, string  $val) : \CGBetterUploads\FileType

Adjust a property of this object.

Parameters

string $key

The property name. One of name, icon, extensions or mimetypes.

string $val

Returns

\CGBetterUploads\FileType