2003-10-03 13:58:51 +02:00
|
|
|
<?php
|
2009-04-17 08:25:33 +02:00
|
|
|
/**
|
2015-01-11 14:07:35 +01:00
|
|
|
* EGroupware API - Mime Magic
|
2009-04-17 08:25:33 +02:00
|
|
|
*
|
|
|
|
* Originally taken from the Horde Framework http://horde.org
|
|
|
|
*
|
|
|
|
* Copyright 1999-2003 Anil Madhavapeddy <anil@recoil.org>
|
|
|
|
* Copyright 2002-2003 Michael Slusarz <slusarz@bigworm.colorado.edu>
|
|
|
|
* Copyright 2003 Free Software Foundation, Inc.
|
|
|
|
*
|
2015-01-11 14:07:35 +01:00
|
|
|
* Generated: 12/04/14 00:15:12 by slusarz on bigworm.curecanti.org
|
|
|
|
*
|
2009-04-17 08:25:33 +02:00
|
|
|
* Ported to phpGroupWare by Dave Hall - dave.hall@mbox.com.au
|
|
|
|
* Note: this class was relicensed as GPL by Dave Hall - all mods GPL
|
|
|
|
*
|
|
|
|
* @link http://www.egroupware.org
|
|
|
|
* @package API
|
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
|
|
|
|
* @version $Id$
|
|
|
|
*/
|
2004-01-10 16:18:12 +01:00
|
|
|
|
2016-03-05 13:33:37 +01:00
|
|
|
use EGroupware\Api;
|
|
|
|
|
2009-04-17 08:25:33 +02:00
|
|
|
/**
|
|
|
|
* Mime Magic class
|
|
|
|
*
|
|
|
|
* All methods can be called static, no need to instanciate the class.
|
2016-03-05 13:33:37 +01:00
|
|
|
*
|
|
|
|
* @deprecated use Api\MimeMagic
|
2009-04-17 08:25:33 +02:00
|
|
|
*/
|
2016-03-05 13:33:37 +01:00
|
|
|
class mime_magic extends Api\MimeMagic
|
2009-04-17 08:25:33 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* temporary fix for apps using the old name
|
|
|
|
*
|
|
|
|
* @deprecated use filename2mime
|
|
|
|
*/
|
|
|
|
public static function filename2mine($filename)
|
|
|
|
{
|
2013-11-11 09:28:03 +01:00
|
|
|
return self::filename2mime($filename);
|
2009-04-17 08:25:33 +02:00
|
|
|
}
|
2003-12-28 15:54:17 +01:00
|
|
|
|
2009-04-17 08:25:33 +02:00
|
|
|
/**
|
2016-03-05 13:33:37 +01:00
|
|
|
* @deprecated use static parameter Api\MimeMagi::$mime_extension_map
|
2009-04-17 08:25:33 +02:00
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public static function get_mime_ext_map()
|
|
|
|
{
|
|
|
|
return self::$mime_extension_map;
|
|
|
|
}
|
2003-10-03 13:58:51 +02:00
|
|
|
|
2009-04-17 08:25:33 +02:00
|
|
|
/**
|
2016-03-05 13:33:37 +01:00
|
|
|
* @deprecated use static parameter Api\MimeMagi::$mime_magic_file
|
2009-04-17 08:25:33 +02:00
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public static function get_mime_magic_file()
|
|
|
|
{
|
|
|
|
return self::$mime_magic_file;
|
2003-10-03 13:58:51 +02:00
|
|
|
}
|
2009-04-17 08:25:33 +02:00
|
|
|
}
|