@@ -45,10 +45,23 @@ class Zend_Mime
45
45
const MULTIPART_MIXED = 'multipart/mixed ' ;
46
46
const MULTIPART_RELATED = 'multipart/related ' ;
47
47
48
+ /**
49
+ * Boundary
50
+ *
51
+ * @var null|string
52
+ */
48
53
protected $ _boundary ;
54
+
55
+ /**
56
+ * @var int
57
+ */
49
58
protected static $ makeUnique = 0 ;
50
59
51
- // lookup-Tables for QuotedPrintable
60
+ /**
61
+ * Lookup-Tables for QuotedPrintable
62
+ *
63
+ * @var array
64
+ */
52
65
public static $ qpKeys = array (
53
66
"\x00" ,"\x01" ,"\x02" ,"\x03" ,"\x04" ,"\x05" ,"\x06" ,"\x07" ,
54
67
"\x08" ,"\x09" ,"\x0A" ,"\x0B" ,"\x0C" ,"\x0D" ,"\x0E" ,"\x0F" ,
@@ -73,6 +86,9 @@ class Zend_Mime
73
86
"\xFF"
74
87
);
75
88
89
+ /**
90
+ * @var array
91
+ */
76
92
public static $ qpReplaceValues = array (
77
93
"=00 " ,"=01 " ,"=02 " ,"=03 " ,"=04 " ,"=05 " ,"=06 " ,"=07 " ,
78
94
"=08 " ,"=09 " ,"=0A " ,"=0B " ,"=0C " ,"=0D " ,"=0E " ,"=0F " ,
@@ -97,6 +113,9 @@ class Zend_Mime
97
113
"=FF "
98
114
);
99
115
116
+ /**
117
+ * @var string
118
+ */
100
119
public static $ qpKeysString =
101
120
"\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F\x7F\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\xD0\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\xDE\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF" ;
102
121
@@ -117,9 +136,9 @@ public static function isPrintable($str)
117
136
/**
118
137
* Encode a given string with the QUOTED_PRINTABLE mechanism and wrap the lines.
119
138
*
120
- * @param string $str
121
- * @param int $lineLength Defaults to {@link LINELENGTH}
122
- * @param int $lineEnd Defaults to {@link LINEEND}
139
+ * @param string $str
140
+ * @param int $lineLength Line length; defaults to {@link LINELENGTH}
141
+ * @param string $lineEnd Line end; defaults to {@link LINEEND}
123
142
* @return string
124
143
*/
125
144
public static function encodeQuotedPrintable ($ str ,
@@ -177,10 +196,10 @@ private static function _encodeQuotedPrintable($str)
177
196
* Mail headers depend on an extended quoted printable algorithm otherwise
178
197
* a range of bugs can occur.
179
198
*
180
- * @param string $str
181
- * @param string $charset
182
- * @param int $lineLength Defaults to {@link LINELENGTH}
183
- * @param int $lineEnd Defaults to {@link LINEEND}
199
+ * @param string $str
200
+ * @param string $charset
201
+ * @param int $lineLength Line length; defaults to {@link LINELENGTH}
202
+ * @param string $lineEnd Line end; defaults to {@link LINEEND}
184
203
* @return string
185
204
*/
186
205
public static function encodeQuotedPrintableHeader ($ str , $ charset ,
@@ -250,10 +269,10 @@ private static function getNextQuotedPrintableToken($str)
250
269
/**
251
270
* Encode a given string in mail header compatible base64 encoding.
252
271
*
253
- * @param string $str
254
- * @param string $charset
255
- * @param int $lineLength Defaults to {@link LINELENGTH}
256
- * @param int $lineEnd Defaults to {@link LINEEND}
272
+ * @param string $str
273
+ * @param string $charset
274
+ * @param int $lineLength Line length; defaults to {@link LINELENGTH}
275
+ * @param string $lineEnd Line end; defaults to {@link LINEEND}
257
276
* @return string
258
277
*/
259
278
public static function encodeBase64Header ($ str ,
@@ -275,9 +294,9 @@ public static function encodeBase64Header($str,
275
294
* Encode a given string in base64 encoding and break lines
276
295
* according to the maximum linelength.
277
296
*
278
- * @param string $str
279
- * @param int $lineLength Defaults to {@link LINELENGTH}
280
- * @param int $lineEnd Defaults to {@link LINEEND}
297
+ * @param string $str
298
+ * @param int $lineLength Line length; defaults to {@link LINELENGTH}
299
+ * @param string $lineEnd Line end; defaults to {@link LINEEND}
281
300
* @return string
282
301
*/
283
302
public static function encodeBase64 ($ str ,
@@ -291,8 +310,6 @@ public static function encodeBase64($str,
291
310
* Constructor
292
311
*
293
312
* @param null|string $boundary
294
- * @access public
295
- * @return void
296
313
*/
297
314
public function __construct ($ boundary = null )
298
315
{
@@ -309,7 +326,7 @@ public function __construct($boundary = null)
309
326
*
310
327
* @param string $str
311
328
* @param string $encoding
312
- * @param string $EOL EOL string ; defaults to {@link Zend_Mime::LINEEND}
329
+ * @param string $EOL Line end ; defaults to {@link Zend_Mime::LINEEND}
313
330
* @return string
314
331
*/
315
332
public static function encode ($ str , $ encoding , $ EOL = self ::LINEEND )
@@ -343,8 +360,7 @@ public function boundary()
343
360
/**
344
361
* Return a MIME boundary line
345
362
*
346
- * @param mixed $EOL Defaults to {@link LINEEND}
347
- * @access public
363
+ * @param string $EOL Line end; defaults to {@link LINEEND}
348
364
* @return string
349
365
*/
350
366
public function boundaryLine ($ EOL = self ::LINEEND )
@@ -355,7 +371,7 @@ public function boundaryLine($EOL = self::LINEEND)
355
371
/**
356
372
* Return MIME ending
357
373
*
358
- * @access public
374
+ * @param string $EOL Line end; defaults to {@link LINEEND}
359
375
* @return string
360
376
*/
361
377
public function mimeEnd ($ EOL = self ::LINEEND )
0 commit comments