X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=class%2Fmime%2FLanguage.class.php;h=a593162f7525a948aa5e3114f6388a07225d9240;hb=e063ce26545adbebf2076b4dad82ba622e5c883c;hp=1e758563497bc32b4538116edf44db12daa7580e;hpb=82d304a0501324b276cabab1870755d5352bd21c;p=squirrelmail.git diff --git a/class/mime/Language.class.php b/class/mime/Language.class.php index 1e758563..a593162f 100644 --- a/class/mime/Language.class.php +++ b/class/mime/Language.class.php @@ -3,24 +3,44 @@ /** * Language.class.php * - * Copyright (c) 2003-2004 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. + * This file should contain class needed to handle Language properties in + * mime messages. I suspect that it is RFC2231 * - * This contains functions needed to handle mime messages. - * - * $Id$ + * @copyright 2003-2021 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License + * @version $Id$ * @package squirrelmail + * @subpackage mime + * @since 1.3.2 */ /** - * Undocumented class + * Class that can be used to handle language properties in MIME headers. + * * @package squirrelmail + * @subpackage mime + * @since 1.3.0 */ class Language { + /** + * Constructor (PHP5 style, required in some future version of PHP) + * @param mixed $name + */ + function __construct($name) { + /** @var mixed */ + $this->name = $name; + /** + * Language properties + * @var array + */ + $this->properties = array(); + } + + /** + * Constructor (PHP4 style, kept for compatibility reasons) + * @param string $name + */ function Language($name) { - $this->name = $name; - $this->properties = array(); + self::__construct($name); } } - -?>