You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rcube_message_part.php 2.4KB

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