Language.class.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * Language.class.php
  4. *
  5. * This file should contain class needed to handle Language properties in
  6. * mime messages. I suspect that it is RFC2231
  7. *
  8. * @copyright 2003-2025 The SquirrelMail Project Team
  9. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  10. * @version $Id$
  11. * @package squirrelmail
  12. * @subpackage mime
  13. * @since 1.3.2
  14. */
  15. /**
  16. * Class that can be used to handle language properties in MIME headers.
  17. *
  18. * @package squirrelmail
  19. * @subpackage mime
  20. * @since 1.3.0
  21. */
  22. class Language {
  23. var $name;
  24. var $properties;
  25. /**
  26. * Constructor (PHP5 style, required in some future version of PHP)
  27. * @param mixed $name
  28. */
  29. function __construct($name) {
  30. /** @var mixed */
  31. $this->name = $name;
  32. /**
  33. * Language properties
  34. * @var array
  35. */
  36. $this->properties = array();
  37. }
  38. /**
  39. * Constructor (PHP4 style, kept for compatibility reasons)
  40. * @param string $name
  41. */
  42. function Language($name) {
  43. self::__construct($name);
  44. }
  45. }