Preparation to begin using phpdocumentor.
[squirrelmail.git] / class / mime / ContentType.class.php
CommitLineData
19d470aa 1<?php
2
3/**
4 * ContentType.class.php
5 *
76911253 6 * Copyright (c) 2003 The SquirrelMail Project Team
19d470aa 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * This contains functions needed to handle mime messages.
10 *
11 * $Id$
12 */
13
14class ContentType {
15 var $type0 = 'text',
16 $type1 = 'plain',
17 $properties = '';
18
19 function ContentType($type) {
20 $pos = strpos($type, '/');
21 if ($pos > 0) {
22 $this->type0 = substr($type, 0, $pos);
23 $this->type1 = substr($type, $pos+1);
24 } else {
25 $this->type0 = $type;
26 }
27 $this->properties = array();
28 }
29}
30
31?>