Remove ancient code that tried to set the default identity to match the FROM header...
[squirrelmail.git] / class / mime / Disposition.class.php
CommitLineData
19d470aa 1<?php
2
3/**
4 * Disposition.class.php
5 *
0f459286 6 * This file contains functions needed to handle content disposition headers
f8211fdf 7 * in mime messages. See RFC 2183.
19d470aa 8 *
c0d96801 9 * @copyright 2003-2012 The SquirrelMail Project Team
4b4abf93 10 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
883d9cd3 11 * @version $Id$
2b646597 12 * @package squirrelmail
0f459286 13 * @subpackage mime
14 * @since 1.3.2
19d470aa 15 */
16
2b646597 17/**
0f459286 18 * Class that handles content disposition header
2b646597 19 * @package squirrelmail
0f459286 20 * @subpackage mime
21 * @since 1.3.0
22 * @todo FIXME: do we have to declare vars ($name and $properties)?
2b646597 23 */
19d470aa 24class Disposition {
0f459286 25 /**
26 * Constructor function
27 * @param string $name
28 */
19d470aa 29 function Disposition($name) {
30 $this->name = $name;
31 $this->properties = array();
32 }
33
0f459286 34 /**
35 * Returns value of content disposition property
36 * @param string $par content disposition property name
37 * @return string
38 * @since 1.3.1
39 */
19d470aa 40 function getProperty($par) {
41 $value = strtolower($par);
42 if (isset($this->properties[$par])) {
43 return $this->properties[$par];
44 }
45 return '';
46 }
47}