Merge "Add 3D filetype for STL files"
[lhc/web/wiklou.git] / includes / libs / mime / defines.php
1 <?php
2 /**
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 * http://www.gnu.org/copyleft/gpl.html
17 *
18 * @file
19 */
20
21 /**@{
22 * Media types.
23 * This defines constants for the value returned by File::getMediaType()
24 */
25 // unknown format
26 define( 'MEDIATYPE_UNKNOWN', 'UNKNOWN' );
27 // some bitmap image or image source (like psd, etc). Can't scale up.
28 define( 'MEDIATYPE_BITMAP', 'BITMAP' );
29 // some vector drawing (SVG, WMF, PS, ...) or image source (oo-draw, etc). Can scale up.
30 define( 'MEDIATYPE_DRAWING', 'DRAWING' );
31 // simple audio file (ogg, mp3, wav, midi, whatever)
32 define( 'MEDIATYPE_AUDIO', 'AUDIO' );
33 // simple video file (ogg, mpg, etc;
34 // no not include formats here that may contain executable sections or scripts!)
35 define( 'MEDIATYPE_VIDEO', 'VIDEO' );
36 // Scriptable Multimedia (flash, advanced video container formats, etc)
37 define( 'MEDIATYPE_MULTIMEDIA', 'MULTIMEDIA' );
38 // Office Documents, Spreadsheets (office formats possibly containing apples, scripts, etc)
39 define( 'MEDIATYPE_OFFICE', 'OFFICE' );
40 // Plain text (possibly containing program code or scripts)
41 define( 'MEDIATYPE_TEXT', 'TEXT' );
42 // binary executable
43 define( 'MEDIATYPE_EXECUTABLE', 'EXECUTABLE' );
44 // archive file (zip, tar, etc)
45 define( 'MEDIATYPE_ARCHIVE', 'ARCHIVE' );
46 // 3D file types (stl)
47 define( 'MEDIATYPE_3D', '3D' );
48 /**@}*/