class MailMessage extends ProtocolMessage (View source)

Methods

string
serializeToString()

Serializes the message and return it as a string.

string
serializePartialToString()

Serializes a protocol buffer that might not have all of the required fields set.

parseFromString(string $s)

Fills the message with a protocol buffer parsed from the given input string.

parsePartialFromString(string $s)

Fills the message with a protocol buffer parsed from the given input string. Will not fail if the resulting protocol buffer is not fully initialized.

mergeFromString(string $s)

Like parseFromString, fills the message with a protocol buffer parsed from the given input string.

mergePartialFromString(string $s)

Like parsePartialFromString, fills the message with a protocol buffer parsed from the given input string. Will not fail if the resulting protocol buffer is not fully initialized.

copyFrom(mixed $pb)

Copies data from another protocol buffer into this protocol buffer.

bool
isInitialized()

Checks if this protocol message has all of the requried fields initialized.

checkInitialized()

No description

tryMerge($d)

No description

outputPartial($out)

No description

byteSizePartial()

No description

clear()

No description

mergeFrom($x)

No description

equals($x)

No description

shortDebugString($prefix = "")

No description

static 
debugFormatString($value)

Format protocol buffer as a text string for debugging.

static 
debugFormatDouble($value)

No description

static 
lengthVarUint64($value)

No description

static 
lengthVarInt64($value)

No description

static 
lengthVarInt32($value)

No description

static 
lengthString($len)

No description

static 
debugFormatBool($b)

No description

static 
debugFormatFloat($value)

No description

static 
debugFormatFixed32($value)

No description

static 
debugFormatFixed64($value)

No description

static 
debugFormatInt32($value)

No description

static 
debugFormatInt64($value)

No description

checkProtoArray($arr)

No description

static bool
integerEquals(int $a, int $b)

Checks if two integers are equal.

getSender()

No description

setSender($val)

No description

clearSender()

No description

hasSender()

No description

getReplyto()

No description

setReplyto($val)

No description

clearReplyto()

No description

hasReplyto()

No description

getToSize()

No description

getToList()

No description

getTo($idx)

No description

setTo($idx, $val)

No description

addTo($val)

No description

clearTo()

No description

getCcSize()

No description

getCcList()

No description

getCc($idx)

No description

setCc($idx, $val)

No description

addCc($val)

No description

clearCc()

No description

getBccSize()

No description

getBccList()

No description

getBcc($idx)

No description

setBcc($idx, $val)

No description

addBcc($val)

No description

clearBcc()

No description

getSubject()

No description

setSubject($val)

No description

clearSubject()

No description

hasSubject()

No description

getTextbody()

No description

setTextbody($val)

No description

clearTextbody()

No description

hasTextbody()

No description

getHtmlbody()

No description

setHtmlbody($val)

No description

clearHtmlbody()

No description

hasHtmlbody()

No description

getAttachmentSize()

No description

getAttachmentList()

No description

mutableAttachment($idx)

No description

getAttachment($idx)

No description

addAttachment()

No description

clearAttachment()

No description

getHeaderSize()

No description

getHeaderList()

No description

mutableHeader($idx)

No description

getHeader($idx)

No description

addHeader()

No description

clearHeader()

No description

getAmphtmlbody()

No description

setAmphtmlbody($val)

No description

clearAmphtmlbody()

No description

hasAmphtmlbody()

No description

Details

string serializeToString()

Serializes the message and return it as a string.

Return Value

string The serialized protocol buffer.

Exceptions

ProtocolBufferEncodeError If the protocol buffer is not initialized.

string serializePartialToString()

Serializes a protocol buffer that might not have all of the required fields set.

Return Value

string The serialized protocol buffer.

parseFromString(string $s)

Fills the message with a protocol buffer parsed from the given input string.

Parameters

string $s The string containing a serialized protocol buffer.

Exceptions

ProtocolBufferDecodeError If the result message is not correctly initialized.

parsePartialFromString(string $s)

Fills the message with a protocol buffer parsed from the given input string. Will not fail if the resulting protocol buffer is not fully initialized.

Parameters

string $s The string containing a serialized protocol buffer.

mergeFromString(string $s)

Like parseFromString, fills the message with a protocol buffer parsed from the given input string.

Parameters

string $s The string containing a serialized protocol buffer.

Exceptions

ProtocolBufferDecodeError If the result message is not correctly initialized.

mergePartialFromString(string $s)

Like parsePartialFromString, fills the message with a protocol buffer parsed from the given input string. Will not fail if the resulting protocol buffer is not fully initialized.

Parameters

string $s The string containing a serialized protocol buffer.

copyFrom(mixed $pb)

Copies data from another protocol buffer into this protocol buffer.

Parameters

mixed $pb The protocol buffer to copy from.

bool isInitialized()

Checks if this protocol message has all of the requried fields initialized.

Return Value

bool true if all fields are initialized, false otherwise.

checkInitialized()

tryMerge($d)

Parameters

$d

outputPartial($out)

Parameters

$out

byteSizePartial()

clear()

mergeFrom($x)

Parameters

$x

equals($x)

Parameters

$x

shortDebugString($prefix = "")

Parameters

$prefix

static protected debugFormatString($value)

Format protocol buffer as a text string for debugging.

Parameters

$value

static protected debugFormatDouble($value)

Parameters

$value

static protected lengthVarUint64($value)

Parameters

$value

static protected lengthVarInt64($value)

Parameters

$value

static protected lengthVarInt32($value)

Parameters

$value

static protected lengthString($len)

Parameters

$len

static protected debugFormatBool($b)

Parameters

$b

static protected debugFormatFloat($value)

Parameters

$value

static protected debugFormatFixed32($value)

Parameters

$value

static protected debugFormatFixed64($value)

Parameters

$value

static protected debugFormatInt32($value)

Parameters

$value

static protected debugFormatInt64($value)

Parameters

$value

protected checkProtoArray($arr)

Parameters

$arr

static protected bool integerEquals(int $a, int $b)

Checks if two integers are equal.

Parameters

int $a The first integer to compare.
int $b The second integer to compare.

Return Value

bool True if the intergers are equal, false otherwise.

getSender()

setSender($val)

Parameters

$val

clearSender()

hasSender()

getReplyto()

setReplyto($val)

Parameters

$val

clearReplyto()

hasReplyto()

getToSize()

getToList()

getTo($idx)

Parameters

$idx

setTo($idx, $val)

Parameters

$idx
$val

addTo($val)

Parameters

$val

clearTo()

getCcSize()

getCcList()

getCc($idx)

Parameters

$idx

setCc($idx, $val)

Parameters

$idx
$val

addCc($val)

Parameters

$val

clearCc()

getBccSize()

getBccList()

getBcc($idx)

Parameters

$idx

setBcc($idx, $val)

Parameters

$idx
$val

addBcc($val)

Parameters

$val

clearBcc()

getSubject()

setSubject($val)

Parameters

$val

clearSubject()

hasSubject()

getTextbody()

setTextbody($val)

Parameters

$val

clearTextbody()

hasTextbody()

getHtmlbody()

setHtmlbody($val)

Parameters

$val

clearHtmlbody()

hasHtmlbody()

getAttachmentSize()

getAttachmentList()

mutableAttachment($idx)

Parameters

$idx

getAttachment($idx)

Parameters

$idx

addAttachment()

clearAttachment()

getHeaderSize()

getHeaderList()

mutableHeader($idx)

Parameters

$idx

getHeader($idx)

Parameters

$idx

addHeader()

clearHeader()

getAmphtmlbody()

setAmphtmlbody($val)

Parameters

$val

clearAmphtmlbody()

hasAmphtmlbody()