projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding index files in order to prevent directory listing.
[squirrelmail.git]
/
class
/
mime
/
ContentType.class.php
diff --git
a/class/mime/ContentType.class.php
b/class/mime/ContentType.class.php
index 5fee50f0f9c3d5b94076f5371dab92a73b94dab8..d44c79f9ccf4fd8baa11a033fea1dbd463087d9a 100644
(file)
--- a/
class/mime/ContentType.class.php
+++ b/
class/mime/ContentType.class.php
@@
-3,24
+3,49
@@
/**
* ContentType.class.php
*
/**
* ContentType.class.php
*
- * Copyright (c) 2003-200
4
The SquirrelMail Project Team
+ * Copyright (c) 2003-200
5
The SquirrelMail Project Team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
- * This contains functions needed to handle mime messages.
+ * This file contains functions needed to handle content type headers
+ * (rfc2045) in mime messages.
*
*
- * $Id$
+ *
@version
$Id$
* @package squirrelmail
* @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
* @package squirrelmail
+ * @subpackage mime
+ * @since 1.3.2
*/
class ContentType {
*/
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) {
function ContentType($type) {
$pos = strpos($type, '/');
if ($pos > 0) {
@@
-33,4
+58,4
@@
class ContentType {
}
}
}
}
-?>
+?>
\ No newline at end of file