phpdocumentor basic preparation, continued
[squirrelmail.git] / class / mime / MessageHeader.class.php
1 <?php
2
3 /**
4 * MessageHeader.class.php
5 *
6 * Copyright (c) 2003 The SquirrelMail Project Team
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 * @package squirrelmail
13 */
14
15 /**
16 * Contains all variables available in a bodystructure
17 * @package squirrelmail
18 */
19 class MessageHeader {
20 /** msg_header contains all variables available in a bodystructure **/
21 /** entity like described in rfc2060 **/
22
23 var $type0 = '',
24 $type1 = '',
25 $parameters = array(),
26 $id = 0,
27 $description = '',
28 $encoding='',
29 $size = 0,
30 $md5='',
31 $disposition = '',
32 $language='';
33
34 /*
35 * returns addres_list of supplied argument
36 * arguments: array('to', 'from', ...) or just a string like 'to'.
37 * result: string: address1, addres2, ....
38 */
39
40 function setVar($var, $value) {
41 $this->{$var} = $value;
42 }
43
44 function getParameter($p) {
45 $value = strtolower($p);
46 return (isset($this->parameters[$p]) ? $this->parameters[$p] : '');
47 }
48
49 function setParameter($parameter, $value) {
50 $this->parameters[strtolower($parameter)] = $value;
51 }
52 }
53
54 ?>