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

Class: Swift_Encoder_Base64Encoder

Source Location: /system/vendor/swiftmailer/swiftmailer/lib/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 16]
Handles Base 64 Encoding in Swift Mailer.



Tags:

author:  Chris Corbyn


[ Top ]


Class Methods


method charsetChanged [line 55]

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 31]

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

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


Overridden in child classes as:

Swift_Mime_HeaderEncoder_Base64HeaderEncoder::encodeString()
Takes an unencoded string and produces a Base64 encoded string from it.


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

[ Top ]


Documentation generated on Sun, 02 Oct 2016 07:44:56 +0000 by phpDocumentor 1.4.3