\Horde_Mime_Headers_Identification

This class represents identification headers (RFC 5322 [3.6.4]).

Summary

Methods
Properties
Constants
__get()
__toString()
getHandles()
__construct()
setValue()
sendEncode()
isDefault()
getIterator()
getIdentificationOb()
$full_value
$value
$name
$value_single
No constants found
_setValue()
_sendEncode()
_sanityCheck()
$_name
$_values
N/A
No private methods found
No private properties found
N/A

Properties

$full_value

$full_value : string

Full header value.

Type

string

$value

$value : string

Header value.

Type

string

$name

$name : string

Header name.

Type

string

$value_single

$value_single : string

The first header value.

Type

string

$_name

$_name : string

Header name (UTF-8, although limited to US-ASCII subset by RFCs).

Type

string

$_values

$_values : array

Header values.

Type

array

Methods

__get()

__get(  $name) 

Parameters

$name

__toString()

__toString() 

getHandles()

getHandles() : array

Return list of explicit header names handled by this driver.

Returns

array —

Header list.

__construct()

__construct(string  $name, mixed  $value) 

Constructor.

Parameters

string $name

Header name.

mixed $value

Header value(s).

setValue()

setValue(mixed  $value) 

Set the value of the header.

Parameters

mixed $value

Header value(s).

sendEncode()

sendEncode(array  $opts = array()) : array

Returns the encoded string value(s) needed when sending the header text to a RFC compliant mail submission server.

Parameters

array $opts

Additional options:

  • charset: (string) Charset to encode to. DEFAULT: UTF-8

Returns

array —

An array of string values.

isDefault()

isDefault() : boolean

If true, indicates the contents of the header is the default value.

Returns

boolean —

True if this header is the default value.

getIterator()

getIterator() 

getIdentificationOb()

getIdentificationOb() : \Horde_Mail_Rfc822_Identification

Get the identification object for the header value.

Returns

\Horde_Mail_Rfc822_Identification —

Identification object.

_setValue()

_setValue(  $value) 

TODO

Parameters

$value

_sendEncode()

_sendEncode(  $opts) 

TODO

Parameters

$opts

_sanityCheck()

_sanityCheck(string  $data) : string

Perform sanity checking on a header value.

Parameters

string $data

The header data.

Returns

string —

The cleaned header data.