\Horde_Mime_Headers_Element_Single

Interface representing a single named header element that can only appear once in a message part.

Summary

Methods
Properties
Constants
__construct()
__get()
setValue()
sendEncode()
isDefault()
getHandles()
getIterator()
__toString()
$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

__construct()

__construct(string  $name, mixed  $value) 

Constructor.

Parameters

string $name

Header name.

mixed $value

Header value(s).

__get()

__get(  $name) 

Parameters

$name

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.

getHandles()

getHandles() : array

Return list of explicit header names handled by this driver.

Returns

array —

Header list.

getIterator()

getIterator() 

__toString()

__toString() 

_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.