8e69bc295e4bdd312f6fcd90966f728ef44004fe
4 * Disposition.class.php
6 * This file contains functions needed to handle content disposition headers
7 * in mime messages. See RFC 2183.
9 * @copyright 2003-2016 The SquirrelMail Project Team
10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
12 * @package squirrelmail
18 * Class that handles content disposition header
19 * @package squirrelmail
22 * @todo FIXME: do we have to declare vars ($name and $properties)?
26 * Constructor (PHP5 style, required in some future version of PHP)
29 function __construct($name) {
31 $this->properties
= array();
35 * Constructor (PHP4 style, kept for compatibility reasons)
38 function Disposition($name) {
39 self
::__construct($name);
43 * Returns value of content disposition property
44 * @param string $par content disposition property name
48 function getProperty($par) {
49 $value = strtolower($par);
50 if (isset($this->properties
[$par])) {
51 return $this->properties
[$par];