X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=class%2Fmime%2FLanguage.class.php;h=6f00b32c882bde25f1c0d6741fced1434ee0cc28;hp=7e3b76004e33bc73bce891ab47b3bca96aaeff8c;hb=69e110f3320c698f8ecc5a7f34ea9fac1caf3c39;hpb=91e0dccca7b2452d8b450791cae3aa4125e8889e diff --git a/class/mime/Language.class.php b/class/mime/Language.class.php index 7e3b7600..6f00b32c 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 contains functions needed to handle mime messages. + * This file should contain class needed to handle Language properties in + * mime messages. I suspect that it is RFC2231 * + * @copyright 2003-2017 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); } } - -?> \ No newline at end of file