d44c79f9ccf4fd8baa11a033fea1dbd463087d9a
4 * ContentType.class.php
6 * Copyright (c) 2003-2005 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
9 * This file contains functions needed to handle content type headers
10 * (rfc2045) in mime messages.
13 * @package squirrelmail
19 * Class that handles content-type headers
20 * Class was named content_type in 1.3.0 and 1.3.1. It is used internally
21 * by rfc822header class.
22 * @package squirrelmail
38 * Auxiliary header information
39 * prepared with parseContentType() function in rfc822header class.
45 * Constructor function.
46 * Prepared type0 and type1 properties
47 * @param string $type content type string without auxiliary information
49 function ContentType($type) {
50 $pos = strpos($type, '/');
52 $this->type0
= substr($type, 0, $pos);
53 $this->type1
= substr($type, $pos+
1);
57 $this->properties
= array();