PHP Класс Horde_Imap_Client_Fetch_Query, horde

Автор: Michael Slusarz ([email protected])
Наследование: implements ArrayAccess, implements Countable, implements Iterator
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_data array Internal data array.

Открытые методы

Метод Описание
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 ( )

Описание методов

bodyPart() публичный Метод

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() публичный Метод

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() публичный Метод

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() публичный Метод

Does the query contain the given criteria?
public contains ( integer $criteria ) : boolean
$criteria integer The criteria to remove.
Результат boolean True if the query contains the given criteria.

count() публичный Метод

public count ( )

current() публичный Метод

public current ( )

envelope() публичный Метод

Return envelope header data.
public envelope ( )

flags() публичный Метод

Return flags set for the message.
public flags ( )

fullText() публичный Метод

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() публичный Метод

Returns a hash of the current query object.
public hash ( ) : string
Результат string Hash.

headerText() публичный Метод

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() публичный Метод

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() публичный Метод

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

key() публичный Метод

public key ( )

mimeHeader() публичный Метод

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() публичный Метод

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

next() публичный Метод

public next ( )

offsetExists() публичный Метод

public offsetExists ( $offset )

offsetGet() публичный Метод

public offsetGet ( $offset )

offsetSet() публичный Метод

public offsetSet ( $offset, $value )

offsetUnset() публичный Метод

public offsetUnset ( $offset )

remove() публичный Метод

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 rewind ( )

seq() публичный Метод

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

size() публичный Метод

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

structure() публичный Метод

Return MIME structure information.
public structure ( )

uid() публичный Метод

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

valid() публичный Метод

public valid ( )

Описание свойств

$_data защищенное свойство

Internal data array.
protected array $_data
Результат array