PHP Class Horde_Imap_Client_Fetch_Query, horde

Author: Michael Slusarz ([email protected])
Inheritance: implements ArrayAccess, implements Countable, implements Iterator
Mostrar archivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_data array Internal data array.

Public Methods

Method Description
bodyPart ( string $id, array $opts = [] ) Return the body part data for a MIME ID.
bodyPartSize ( string $id ) Returns the decoded body part size for a MIME ID.
bodyText ( array $opts = [] ) Return body text.
contains ( integer $criteria ) : boolean Does the query contain the given criteria?
count ( )
current ( )
envelope ( ) Return envelope header data.
flags ( ) Return flags set for the message.
fullText ( array $opts = [] ) Get the full text of the message.
hash ( ) : string Returns a hash of the current query object.
headerText ( array $opts = [] ) Return header text.
headers ( string $label, array $search, array $opts = [] ) Returns RFC 2822 header text that matches a search string.
imapDate ( ) Return the internal (IMAP) date of the message.
key ( )
mimeHeader ( string $id, array $opts = [] ) Return MIME header text.
modseq ( ) Return the mod-sequence value for the message.
next ( )
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )
remove ( integer $criteria, string $key ) Remove an entry under a given criteria.
rewind ( )
seq ( ) Return the sequence number of the message.
size ( ) Return the size (in bytes) of the message.
structure ( ) Return MIME structure information.
uid ( ) Return the unique ID of the message.
valid ( )

Method Details

bodyPart() public method

Return the body part data for a MIME ID.
public bodyPart ( string $id, array $opts = [] )
$id string The MIME ID to obtain the body part text for.
$opts array The following options are available: - decode: (boolean) Attempt to server-side decode the bodypart data if it is MIME transfer encoded. DEFAULT: false - length: (integer) The length of the substring to return. DEFAULT: The entire text is returned. - peek: (boolean) If set, does not set the '\Seen' flag on the message. DEFAULT: The seen flag is set. - start: (integer) If a portion of the full text is desired to be returned, the starting position is identified here. DEFAULT: The entire text is returned.

bodyPartSize() public method

Returns the decoded body part size for a MIME ID.
public bodyPartSize ( string $id )
$id string The MIME ID to obtain the decoded body part size for.

bodyText() public method

Body text is defined only for the base RFC 2822 message or message/rfc822 parts.
public bodyText ( array $opts = [] )
$opts array The following options are available: - id: (string) The MIME ID to obtain the body text for. DEFAULT: The body text for the entire message will be returned. - length: (integer) The length of the substring to return. DEFAULT: The entire text is returned. - peek: (boolean) If set, does not set the '\Seen' flag on the message. DEFAULT: The seen flag is set. - start: (integer) If a portion of the full text is desired to be returned, the starting position is identified here. DEFAULT: The entire text is returned.

contains() public method

Does the query contain the given criteria?
public contains ( integer $criteria ) : boolean
$criteria integer The criteria to remove.
return boolean True if the query contains the given criteria.

count() public method

public count ( )

current() public method

public current ( )

envelope() public method

Return envelope header data.
public envelope ( )

flags() public method

Return flags set for the message.
public flags ( )

fullText() public method

Get the full text of the message.
public fullText ( array $opts = [] )
$opts array The following options are available: - length: (integer) The length of the substring to return. DEFAULT: The entire text is returned. - peek: (boolean) If set, does not set the '\Seen' flag on the message. DEFAULT: The seen flag is set. - start: (integer) If a portion of the full text is desired to be returned, the starting position is identified here. DEFAULT: The entire text is returned.

hash() public method

Returns a hash of the current query object.
public hash ( ) : string
return string Hash.

headerText() public method

Header text is defined only for the base RFC 2822 message or message/rfc822 parts.
public headerText ( array $opts = [] )
$opts array The following options are available: - id: (string) The MIME ID to obtain the header text for. DEFAULT: The header text for the base message will be returned. - length: (integer) The length of the substring to return. DEFAULT: The entire text is returned. - peek: (boolean) If set, does not set the '\Seen' flag on the message. DEFAULT: The seen flag is set. - start: (integer) If a portion of the full text is desired to be returned, the starting position is identified here. DEFAULT: The entire text is returned.

headers() public method

This header search work only with the base RFC 2822 message or message/rfc822 parts.
public headers ( string $label, array $search, array $opts = [] )
$label string A unique label associated with this particular search. This is how the results are stored.
$search array The search string(s) (case-insensitive).
$opts array The following options are available: - cache: (boolean) If true, and 'peek' is also true, will cache the result of this call. DEFAULT: false - id: (string) The MIME ID to search. DEFAULT: The base message part - length: (integer) The length of the substring to return. DEFAULT: The entire text is returned. - notsearch: (boolean) Do a 'NOT' search on the headers. DEFAULT: false - peek: (boolean) If set, does not set the '\Seen' flag on the message. DEFAULT: The seen flag is set. - start: (integer) If a portion of the full text is desired to be returned, the starting position is identified here. DEFAULT: The entire text is returned.

imapDate() public method

Return the internal (IMAP) date of the message.
public imapDate ( )

key() public method

public key ( )

mimeHeader() public method

MIME header text is defined only for non-RFC 2822 messages and non-message/rfc822 parts.
public mimeHeader ( string $id, array $opts = [] )
$id string The MIME ID to obtain the MIME header text for.
$opts array The following options are available: - length: (integer) The length of the substring to return. DEFAULT: The entire text is returned. - peek: (boolean) If set, does not set the '\Seen' flag on the message. DEFAULT: The seen flag is set. - start: (integer) If a portion of the full text is desired to be returned, the starting position is identified here. DEFAULT: The entire text is returned.

modseq() public method

The server must support the CONDSTORE IMAP extension, and the mailbox must support mod-sequences.
public modseq ( )

next() public method

public next ( )

offsetExists() public method

public offsetExists ( $offset )

offsetGet() public method

public offsetGet ( $offset )

offsetSet() public method

public offsetSet ( $offset, $value )

offsetUnset() public method

public offsetUnset ( $offset )

remove() public method

Remove an entry under a given criteria.
public remove ( integer $criteria, string $key )
$criteria integer Criteria ID.
$key string The key to remove.

rewind() public method

public rewind ( )

seq() public method

Return the sequence number of the message.
public seq ( )

size() public method

Return the size (in bytes) of the message.
public size ( )

structure() public method

Return MIME structure information.
public structure ( )

uid() public method

Return the unique ID of the message.
public uid ( )

valid() public method

public valid ( )

Property Details

$_data protected_oe property

Internal data array.
protected array $_data
return array