PHP Class Horde_Imap_Client_Fetch_Results, horde

Author: Michael Slusarz ([email protected])
Inheritance: implements ArrayAccess, implements Countable, implements IteratorAggregate
Show file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_data array Internal data array.
$_keyType integer Key type.
$_obClass string Class to use when creating a new fetch object.

Public Methods

Method Description
__construct ( string $ob_class = 'Horde_Imap_Client_Data_Fetch', integer $key_type = self::UID ) Constructor.
__get ( $name )
clear ( ) Clears all fetch results.
count ( )
first ( ) : null | Horde_Imap_Client_Data_Fetch Return the first fetch object in the results, if there is only one object.
get ( string $key ) : Horde_Imap_Client_Data_Fetch Return a fetch object, creating and storing an empty object in the results set if it doesn't currently exist.
getIterator ( )
ids ( ) : array Return the list of IDs.
offsetExists ( $offset )
offsetGet ( $offset )
offsetSet ( $offset, $value )
offsetUnset ( $offset )

Method Details

__construct() public method

Constructor.
public __construct ( string $ob_class = 'Horde_Imap_Client_Data_Fetch', integer $key_type = self::UID )
$ob_class string Class to use when creating a new fetch object.
$key_type integer Key type.

__get() public method

public __get ( $name )

clear() public method

Clears all fetch results.
Since: 2.6.0
public clear ( )

count() public method

public count ( )

first() public method

Return the first fetch object in the results, if there is only one object.
public first ( ) : null | Horde_Imap_Client_Data_Fetch
return null | Horde_Imap_Client_Data_Fetch The fetch object if there is only one object, or null.

get() public method

Return a fetch object, creating and storing an empty object in the results set if it doesn't currently exist.
public get ( string $key ) : Horde_Imap_Client_Data_Fetch
$key string The key to retrieve.
return Horde_Imap_Client_Data_Fetch The fetch object.

getIterator() public method

public getIterator ( )

ids() public method

Return the list of IDs.
public ids ( ) : array
return array ID list.

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 )

Property Details

$_data protected property

Internal data array.
protected array $_data
return array

$_keyType protected property

Key type.
protected int $_keyType
return integer

$_obClass protected property

Class to use when creating a new fetch object.
protected string $_obClass
return string