\Horde_Imap_Client_Data_Format_String

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

Summary

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

Properties

$_data

$_data : mixed

Data.

Type

mixed

$_filter

$_filter : string

String filter parameters.

Type

string

Methods

__construct()

__construct(mixed  $data, array  $opts = array()) 

Constructor.

Parameters

mixed $data

Data.

array $opts

Additional options:

  • eol: (boolean) If true, normalize EOLs in input. @since 2.2.0
  • skipscan: (boolean) If true, don't scan input for binary/literal/quoted data. @since 2.2.0

Throws

\Horde_Imap_Client_Data_Format_Exception

__toString()

__toString() : string

Returns the string value of the raw data.

Returns

string —

String value.

getData()

getData() : mixed

Returns the raw data.

Returns

mixed —

Raw data.

escape()

escape() : string

Returns the data formatted for output to the IMAP server.

Returns

string —

IMAP escaped string.

verify()

verify() 

Verify the data.

Throws

\Horde_Imap_Client_Data_Format_Exception

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.

_filterParams()

_filterParams() : object

Return the base string filter parameters.

Returns

object —

Filter parameters.