Mercurial > hg > rc2
comparison program/lib/Roundcube/rcube_message_part.php @ 0:4681f974d28b
vanilla 1.3.3 distro, I hope
| author | Charlie Root |
|---|---|
| date | Thu, 04 Jan 2018 15:52:31 -0500 |
| parents | |
| children | b6a96bdd6b29 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:4681f974d28b |
|---|---|
| 1 <?php | |
| 2 | |
| 3 /** | |
| 4 +-----------------------------------------------------------------------+ | |
| 5 | This file is part of the Roundcube Webmail client | | |
| 6 | Copyright (C) 2005-2012, The Roundcube Dev Team | | |
| 7 | Copyright (C) 2011-2012, Kolab Systems AG | | |
| 8 | | | |
| 9 | Licensed under the GNU General Public License version 3 or | | |
| 10 | any later version with exceptions for skins & plugins. | | |
| 11 | See the README file for a full license statement. | | |
| 12 | | | |
| 13 | PURPOSE: | | |
| 14 | Class representing a message part | | |
| 15 +-----------------------------------------------------------------------+ | |
| 16 | Author: Thomas Bruederli <roundcube@gmail.com> | | |
| 17 | Author: Aleksander Machniak <alec@alec.pl> | | |
| 18 +-----------------------------------------------------------------------+ | |
| 19 */ | |
| 20 | |
| 21 /** | |
| 22 * Class representing a message part | |
| 23 * | |
| 24 * @package Framework | |
| 25 * @subpackage Storage | |
| 26 * @author Thomas Bruederli <roundcube@gmail.com> | |
| 27 * @author Aleksander Machniak <alec@alec.pl> | |
| 28 */ | |
| 29 class rcube_message_part | |
| 30 { | |
| 31 /** | |
| 32 * Part MIME identifier | |
| 33 * | |
| 34 * @var string | |
| 35 */ | |
| 36 public $mime_id = ''; | |
| 37 | |
| 38 /** | |
| 39 * Content main type | |
| 40 * | |
| 41 * @var string | |
| 42 */ | |
| 43 public $ctype_primary = 'text'; | |
| 44 | |
| 45 /** | |
| 46 * Content subtype | |
| 47 * | |
| 48 * @var string | |
| 49 */ | |
| 50 public $ctype_secondary = 'plain'; | |
| 51 | |
| 52 /** | |
| 53 * Complete content type | |
| 54 * | |
| 55 * @var string | |
| 56 */ | |
| 57 public $mimetype = 'text/plain'; | |
| 58 | |
| 59 /** | |
| 60 * Part size in bytes | |
| 61 * | |
| 62 * @var int | |
| 63 */ | |
| 64 public $size = 0; | |
| 65 | |
| 66 /** | |
| 67 * Part headers | |
| 68 * | |
| 69 * @var array | |
| 70 */ | |
| 71 public $headers = array(); | |
| 72 | |
| 73 public $disposition = ''; | |
| 74 public $filename = ''; | |
| 75 public $encoding = '8bit'; | |
| 76 public $charset = ''; | |
| 77 public $d_parameters = array(); | |
| 78 public $ctype_parameters = array(); | |
| 79 | |
| 80 | |
| 81 /** | |
| 82 * Clone handler. | |
| 83 */ | |
| 84 function __clone() | |
| 85 { | |
| 86 if (isset($this->parts)) { | |
| 87 foreach ($this->parts as $idx => $part) { | |
| 88 if (is_object($part)) { | |
| 89 $this->parts[$idx] = clone $part; | |
| 90 } | |
| 91 } | |
| 92 } | |
| 93 } | |
| 94 } |
