adding index files in order to prevent directory listing.
[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
10 * in mime messages.
19d470aa 11 *
883d9cd3 12 * @version $Id$
2b646597 13 * @package squirrelmail
0f459286 14 * @subpackage mime
15 * @since 1.3.2
16 * @todo find rfc number
19d470aa 17 */
18
2b646597 19/**
0f459286 20 * Class that handles content disposition header
2b646597 21 * @package squirrelmail
0f459286 22 * @subpackage mime
23 * @since 1.3.0
24 * @todo FIXME: do we have to declare vars ($name and $properties)?
2b646597 25 */
19d470aa 26class Disposition {
0f459286 27 /**
28 * Constructor function
29 * @param string $name
30 */
19d470aa 31 function Disposition($name) {
32 $this->name = $name;
33 $this->properties = array();
34 }
35
0f459286 36 /**
37 * Returns value of content disposition property
38 * @param string $par content disposition property name
39 * @return string
40 * @since 1.3.1
41 */
19d470aa 42 function getProperty($par) {
43 $value = strtolower($par);
44 if (isset($this->properties[$par])) {
45 return $this->properties[$par];
46 }
47 return '';
48 }
49}
50
8d8da447 51?>