defines.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. * Media types.
  22. * This defines constants for the value returned by File::getMediaType()
  23. */
  24. // unknown format
  25. define( 'MEDIATYPE_UNKNOWN', 'UNKNOWN' );
  26. // some bitmap image or image source (like psd, etc). Can't scale up.
  27. define( 'MEDIATYPE_BITMAP', 'BITMAP' );
  28. // some vector drawing (SVG, WMF, PS, ...) or image source (oo-draw, etc). Can scale up.
  29. define( 'MEDIATYPE_DRAWING', 'DRAWING' );
  30. // simple audio file (ogg, mp3, wav, midi, whatever)
  31. define( 'MEDIATYPE_AUDIO', 'AUDIO' );
  32. // simple video file (ogg, mpg, etc;
  33. // no not include formats here that may contain executable sections or scripts!)
  34. define( 'MEDIATYPE_VIDEO', 'VIDEO' );
  35. // Scriptable Multimedia (flash, advanced video container formats, etc)
  36. define( 'MEDIATYPE_MULTIMEDIA', 'MULTIMEDIA' );
  37. // Office Documents, Spreadsheets (office formats possibly containing apples, scripts, etc)
  38. define( 'MEDIATYPE_OFFICE', 'OFFICE' );
  39. // Plain text (possibly containing program code or scripts)
  40. define( 'MEDIATYPE_TEXT', 'TEXT' );
  41. // binary executable
  42. define( 'MEDIATYPE_EXECUTABLE', 'EXECUTABLE' );
  43. // archive file (zip, tar, etc)
  44. define( 'MEDIATYPE_ARCHIVE', 'ARCHIVE' );
  45. // 3D file types (stl)
  46. define( 'MEDIATYPE_3D', '3D' );
  47. /** @} */