one more identity action to process
[squirrelmail.git] / class / mime / Disposition.class.php
CommitLineData
19d470aa 1<?php
2
3/**
4 * Disposition.class.php
5 *
6c84ba1e 6 * Copyright (c) 2003-2005 The SquirrelMail Project Team
19d470aa 7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
0f459286 9 * This file contains functions needed to handle content disposition headers
f8211fdf 10 * in mime messages. See RFC 2183.
19d470aa 11 *
883d9cd3 12 * @version $Id$
2b646597 13 * @package squirrelmail
0f459286 14 * @subpackage mime
15 * @since 1.3.2
19d470aa 16 */
17
2b646597 18/**
0f459286 19 * Class that handles content disposition header
2b646597 20 * @package squirrelmail
0f459286 21 * @subpackage mime
22 * @since 1.3.0
23 * @todo FIXME: do we have to declare vars ($name and $properties)?
2b646597 24 */
19d470aa 25class Disposition {
0f459286 26 /**
27 * Constructor function
28 * @param string $name
29 */
19d470aa 30 function Disposition($name) {
31 $this->name = $name;
32 $this->properties = array();
33 }
34
0f459286 35 /**
36 * Returns value of content disposition property
37 * @param string $par content disposition property name
38 * @return string
39 * @since 1.3.1
40 */
19d470aa 41 function getProperty($par) {
42 $value = strtolower($par);
43 if (isset($this->properties[$par])) {
44 return $this->properties[$par];
45 }
46 return '';
47 }
48}
49
8d8da447 50?>