\Horde_Imap_Client_Data_Format_Astring

Object representation of an IMAP astring (atom or string) (RFC 3501 [4.3]).

Summary

Methods
Properties
Constants
__construct()
__toString()
escape()
escapeStream()
quoted()
forceQuoted()
literal()
forceLiteral()
binary()
forceBinary()
length()
getStream()
getData()
verify()
No public properties found
No constants found
_filterParams()
$_filter
$_data
N/A
No private methods found
No private properties found
N/A

Properties

$_filter

$_filter : string

String filter parameters.

Type

string

$_data

$_data : mixed

Data.

Type

mixed

Methods

__construct()

__construct(mixed  $data) 

Constructor.

Parameters

mixed $data

Data.

__toString()

__toString() : string

Returns the string value of the raw data.

Returns

string —

String value.

escape()

escape() : string

Returns the data formatted for output to the IMAP server.

Returns

string —

IMAP escaped string.

escapeStream()

escapeStream() : resource

Return the escaped string as a stream.

Returns

resource —

The IMAP escaped stream.

quoted()

quoted() : boolean

Does this data item require quoted string output?

Returns

boolean —

True if quoted output is required.

forceQuoted()

forceQuoted() 

Force item to be output quoted.

literal()

literal() : boolean

Does this data item require literal string output?

Returns

boolean —

True if literal output is required.

forceLiteral()

forceLiteral() 

Force item to be output as a literal.

binary()

binary() : boolean

If literal output, is the data binary?

Returns

boolean —

True if the literal output is binary.

forceBinary()

forceBinary() 

Force item to be output as a binary literal.

length()

length() : integer

Return the length of the data.

Returns

integer —

Data length.

getStream()

getStream() : \Horde_Stream

Return the contents of the string as a stream object.

Returns

\Horde_Stream —

The stream object.

getData()

getData() : mixed

Returns the raw data.

Returns

mixed —

Raw data.

verify()

verify() 

Verify the data.

Throws

\Horde_Imap_Client_Data_Format_Exception

_filterParams()

_filterParams() : object

Return the base string filter parameters.

Returns

object —

Filter parameters.