~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to class/mime/Disposition.class.php

  • Committer: Bazaar Package Importer
  • Author(s): Sam Johnston
  • Date: 2004-02-04 01:42:12 UTC
  • Revision ID: james.westby@ubuntu.com-20040204014212-ek9533qvd2vo1wa1
Tags: upstream-1.5.0
ImportĀ upstreamĀ versionĀ 1.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/**
 
4
 * Disposition.class.php
 
5
 *
 
6
 * Copyright (c) 2003 The SquirrelMail Project Team
 
7
 * Licensed under the GNU GPL. For full terms see the file COPYING.
 
8
 *
 
9
 * This contains functions needed to handle mime messages.
 
10
 *
 
11
 * $Id: Disposition.class.php,v 1.3 2003/10/28 21:30:51 tassium Exp $
 
12
 * @package squirrelmail
 
13
 */
 
14
 
 
15
/**
 
16
 * Undocumented class
 
17
 * @package squirrelmail
 
18
 */
 
19
class Disposition {
 
20
    function Disposition($name) {
 
21
       $this->name = $name;
 
22
       $this->properties = array();
 
23
    }
 
24
 
 
25
    function getProperty($par) {
 
26
        $value = strtolower($par);
 
27
        if (isset($this->properties[$par])) {
 
28
            return $this->properties[$par];
 
29
        }
 
30
        return '';
 
31
    }
 
32
}
 
33
 
 
34
?>