XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Mime_ContentEncoder_PlainContentEncoder Class Reference
Inheritance diagram for Swift_Mime_ContentEncoder_PlainContentEncoder:
Inheritance graph

Public Member Functions

 __construct ($name, $canonical=false)
 
 charsetChanged ($charset)
 
 encodeByteStream (Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset=0, $maxLineLength=0)
 
 encodeString ($string, $firstLineOffset=0, $maxLineLength=0)
 
 getName ()
 

Private Member Functions

 _canonicalize ($string)
 
 _safeWordwrap ($string, $length=75, $le="\r\n")
 

Private Attributes

 $_canonical
 
 $_name
 

Detailed Description

Definition at line 21 of file PlainContentEncoder.php.

Constructor & Destructor Documentation

Swift_Mime_ContentEncoder_PlainContentEncoder::__construct (   $name,
  $canonical = false 
)

Creates a new PlainContentEncoder with $name (probably 7bit or 8bit).

Parameters
string$name
boolean$canonicalIf canonicalization transformation should be done.

Definition at line 44 of file PlainContentEncoder.php.

Member Function Documentation

Swift_Mime_ContentEncoder_PlainContentEncoder::_canonicalize (   $string)
private

Canonicalize string input (fix CRLF).

Parameters
string$string
Returns
string private

Definition at line 166 of file PlainContentEncoder.php.

Referenced by encodeByteStream(), and encodeString().

Here is the caller graph for this function:

Swift_Mime_ContentEncoder_PlainContentEncoder::_safeWordwrap (   $string,
  $length = 75,
  $le = "\r\n" 
)
private

A safer (but weaker) wordwrap for unicode.

Parameters
string$string
int$length
string$le
Returns
string private

Definition at line 125 of file PlainContentEncoder.php.

Swift_Mime_ContentEncoder_PlainContentEncoder::charsetChanged (   $charset)

Not used.

Implements Swift_Mime_CharsetObserver.

Definition at line 111 of file PlainContentEncoder.php.

Swift_Mime_ContentEncoder_PlainContentEncoder::encodeByteStream ( Swift_OutputByteStream  $os,
Swift_InputByteStream  $is,
  $firstLineOffset = 0,
  $maxLineLength = 0 
)

Encode stream $in to stream $out.

Parameters
Swift_OutputByteStream$in
Swift_InputByteStream$out
int$firstLineOffset,ignored
int$maxLineLength,optional,0means no wrapping will occur

Implements Swift_Mime_ContentEncoder.

Definition at line 74 of file PlainContentEncoder.php.

References _canonicalize(), Swift_OutputByteStream\read(), and Swift_InputByteStream\write().

Here is the call graph for this function:

Swift_Mime_ContentEncoder_PlainContentEncoder::encodeString (   $string,
  $firstLineOffset = 0,
  $maxLineLength = 0 
)

Encode a given string to produce an encoded string.

Parameters
string$string
int$firstLineOffset,ignored
int$maxLineLength- 0 means no wrapping will occur
Returns
string

Implements Swift_Encoder.

Definition at line 57 of file PlainContentEncoder.php.

References _canonicalize().

Here is the call graph for this function:

Swift_Mime_ContentEncoder_PlainContentEncoder::getName ( )

Get the name of this encoding scheme.

Returns
string

Implements Swift_Mime_ContentEncoder.

Definition at line 103 of file PlainContentEncoder.php.

References $_name.

Member Data Documentation

Swift_Mime_ContentEncoder_PlainContentEncoder::$_canonical
private

Definition at line 37 of file PlainContentEncoder.php.

Swift_Mime_ContentEncoder_PlainContentEncoder::$_name
private

Definition at line 30 of file PlainContentEncoder.php.

Referenced by getName().


The documentation for this class was generated from the following file: