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

Class: Swift_Mime_HeaderEncoder_Base64HeaderEncoder

Source Location: /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/HeaderEncoder/Base64HeaderEncoder.php

Class Overview

Swift_Encoder_Base64Encoder
   |
   --Swift_Mime_HeaderEncoder_Base64HeaderEncoder

Handles Base64 (B) Header Encoding in Swift Mailer.


Author(s):

  • Chris Corbyn

Implements interfaces:

Methods


Inherited Methods

Class: Swift_Encoder_Base64Encoder

Swift_Encoder_Base64Encoder::charsetChanged()
Does nothing.
Swift_Encoder_Base64Encoder::encodeString()
Takes an unencoded string and produces a Base64 encoded string from it.

Class Details

[line 16]
Handles Base64 (B) Header Encoding in Swift Mailer.



Tags:

author:  Chris Corbyn


[ Top ]


Class Methods


method encodeString [line 42]

string encodeString( string $string, [int $firstLineOffset = 0], [int $maxLineLength = 0], [string $charset = 'utf-8'])

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

If the charset is iso-2022-jp, it uses mb_encode_mimeheader instead of default encodeString, otherwise pass to the parent method.




Tags:

access:  public



Implementation of:
Swift_Encoder::encodeString()
Encode a given string to produce an encoded string.
Overrides Swift_Encoder_Base64Encoder::encodeString() (Takes an unencoded string and produces a Base64 encoded string from it.)

Parameters:

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

[ Top ]

method getName [line 24]

string getName( )

Get the name of this encoding scheme.

Returns the string 'B'.




Tags:

access:  public



Implementation of:
Swift_Mime_HeaderEncoder::getName()
Get the MIME name of this content encoding scheme.
[ Top ]


Documentation generated on Sun, 02 Oct 2016 07:45:09 +0000 by phpDocumentor 1.4.3