4 * MessageHeader.class.php
6 * This file contains functions needed to handle headers in mime messages.
8 * @copyright © 2003-2009 The SquirrelMail Project Team
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
11 * @package squirrelmail
17 * Message header class
18 * Class contains all variables available in a bodystructure
19 * entity like described in rfc2060
20 * It was called msg_header in 1.3.0 and 1.3.1.
21 * @package squirrelmail
37 * Content type parameters
40 var $parameters = array();
48 var $description = '';
65 var $disposition = '';
72 * Sets header variable
76 function setVar($var, $value) {
77 $this->{$var} = $value;
81 * Gets parameter value from $parameters array
85 function getParameter($p) {
86 $value = strtolower($p);
87 return (isset($this->parameters
[$p]) ?
$this->parameters
[$p] : '');
91 * Sets parameter value in $parameters array
92 * @param string $parameter
95 function setParameter($parameter, $value) {
96 $this->parameters
[strtolower($parameter)] = $value;