X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=class%2Fmime%2FContentType.class.php;h=be8761554ee97dfc271a0492c94e9991416aa54c;hp=5fee50f0f9c3d5b94076f5371dab92a73b94dab8;hb=eb2425ec0610455c098bfcd715292cd0ec525c4c;hpb=82d304a0501324b276cabab1870755d5352bd21c diff --git a/class/mime/ContentType.class.php b/class/mime/ContentType.class.php index 5fee50f0..be876155 100644 --- a/class/mime/ContentType.class.php +++ b/class/mime/ContentType.class.php @@ -3,24 +3,48 @@ /** * ContentType.class.php * - * Copyright (c) 2003-2004 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. + * This file contains functions needed to handle content type headers + * (rfc2045) in mime messages. * - * This contains functions needed to handle mime messages. - * - * $Id$ + * @copyright © 2003-2006 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 handles content-type headers + * Class was named content_type in 1.3.0 and 1.3.1. It is used internally + * by rfc822header class. * @package squirrelmail + * @subpackage mime + * @since 1.3.2 */ class ContentType { - var $type0 = 'text', - $type1 = 'plain', - $properties = ''; + /** + * Media type + * @var string + */ + var $type0 = 'text'; + /** + * Media subtype + * @var string + */ + var $type1 = 'plain'; + /** + * Auxiliary header information + * prepared with parseContentType() function in rfc822header class. + * @var array + */ + var $properties = ''; + /** + * Constructor function. + * Prepared type0 and type1 properties + * @param string $type content type string without auxiliary information + */ function ContentType($type) { $pos = strpos($type, '/'); if ($pos > 0) { @@ -32,5 +56,3 @@ class ContentType { $this->properties = array(); } } - -?>