Swift
[ class tree: Swift ] [ index: Swift ] [ all elements ]

Class: Swift_Encoder_Base64Encoder

Source Location: /vendors/swift/classes/Swift/Encoder/Base64Encoder.php

Class Overview


Handles Base 64 Encoding in Swift Mailer.


Author(s):

  • Chris Corbyn

Implements interfaces:

Methods


Child classes:

Swift_Mime_ContentEncoder_Base64ContentEncoder
Handles Base 64 Transfer Encoding in Swift Mailer.
Swift_Mime_HeaderEncoder_Base64HeaderEncoder
Handles Base64 (B) Header Encoding in Swift Mailer.

Class Details

[line 19]
Handles Base 64 Encoding in Swift Mailer.



Tags:

author:  Chris Corbyn
filesource:  Source Code for this file


[ Top ]


Class Methods


method charsetChanged [line 59]

void charsetChanged( $charset)

Does nothing.



Tags:

access:  public



Implementation of:
Swift_Mime_CharsetObserver::charsetChanged()
Notify this observer that the entity's charset has changed.

Parameters:

   $charset  

[ Top ]

method encodeString [line 32]

string encodeString( string $string, [int $firstLineOffset = 0], [ $maxLineLength = 0], int $maxLineLength,)

Takes an unencoded string and produces a Base64 encoded string from it.

Base64 encoded strings have a maximum line length of 76 characters. If the first line needs to be shorter, indicate the difference with $firstLineOffset.




Tags:

access:  public



Implementation of:
Swift_Encoder::encodeString()
Encode a given string to produce an encoded string.

Parameters:

string   $string   to encode
int   $firstLineOffset  
int   $maxLineLength,   optional, 0 indicates the default of 76 bytes
   $maxLineLength  

[ Top ]


Documentation generated on Mon, 05 Sep 2011 20:32:08 -0500 by phpDocumentor 1.4.3