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