Class Swift_Mime_Headers_AbstractHeader
An abstract base MIME Header.
- Swift_Mime_Headers_AbstractHeader implements Swift_Mime_Header
Direct known subclasses
Swift_Mime_Headers_DateHeader, Swift_Mime_Headers_IdentificationHeader, Swift_Mime_Headers_MailboxHeader, Swift_Mime_Headers_PathHeader, Swift_Mime_Headers_UnstructuredHeaderIndirect known subclasses
Swift_Mime_Headers_ParameterizedHeaderPackage: Swift\Mime
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Mime/Headers/AbstractHeader.php
public
|
|
public
|
|
public
string
|
|
public
|
#
setLanguage( string $lang )
Set the language used in this Header. For example, for US English, 'en-us'. This can be unspecified. |
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
#
setMaxLineLength( integer $lineLength )
Set the maximum length of lines in the header (excluding EOL). |
public
integer
|
|
public
string
|
|
public
string
|
|
protected
|
|
protected
string
|
#
createPhrase(
Produces a compliant, formatted RFC 2822 'phrase' based on the string given. |
protected
string
|
#
encodeWords(
Encode needed word tokens within a string of input. |
protected
boolean
|
|
protected
string[]
|
#
getEncodableWordTokens( string $string )
Splits a string into tokens in blocks of words which can be encoded quickly. |
protected
string
|
#
getTokenAsEncodedWord( string $token, integer $firstLineOffset = 0 )
Get a token as an encoded word for safe insertion into headers. |
protected
string[]
|
#
generateTokenLines( string $token )
Generates tokens from the given string which include CRLF as individual tokens. |
protected
|
|
protected
string
|
|
protected
|
|
protected
array
|
|
private
string
|
#
_tokensToString( array $tokens )
Takes an array of tokens which appear in the header and turns them into an RFC 2822 compliant string, adding FWSP where needed. |
getFieldBody(),
getFieldBodyModel(),
getFieldType(),
setFieldBodyModel()
|
TYPE_DATE,
TYPE_ID,
TYPE_MAILBOX,
TYPE_PARAMETERIZED,
TYPE_PATH,
TYPE_TEXT
|
private
string
|
$_name
The name of this Header. |
|
private
|
$_grammar
The Grammar used for this Header. |
|
private
|
$_encoder
The Encoder used to encode this Header. |
|
private
integer
|
$_lineLength
The maximum length of a line in the header. |
#
78
|
private
string
|
$_lang
The language used in this Header. |
|
private
string
|
$_charset
The character set of the text in this Header. |
#
'utf-8'
|
private
string
|
$_cachedValue
The value of this Header, cached. |
#
null
|