Documentation

IMP_Compose_Exception_Address extends IMP_Compose_Exception
in package
implements Countable, IteratorAggregate

Extension of IMP_Compose_Exception that handles the situation of invalid address input. Allows details of individual e-mail address errors to be communicated to the user.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2013-2017 Horde LLC

license

http://www.horde.org/licenses/gpl GPL

Table of Contents

Interfaces

Countable
IteratorAggregate

Constants

BAD  = 1
WARN  = 2

Properties

$encrypt  : string
Stores information on whether an encryption dialog window needs to be opened.
$tied_identity  : int
If set, indicates that this identity matches the given to address.
$_addresses  : array<string|int, mixed>
The list of error addresses.

Methods

addAddress()  : mixed
Add an address to the bad list.
count()  : int
Returns the number of error addresses.
createAndLog()  : IMP_Compose_Exception
Creates a new Exception object and immediately logs the message.
getIterator()  : ArrayIterator
log()  : bool
Log error message.

Constants

Properties

$encrypt

Stores information on whether an encryption dialog window needs to be opened.

public string $encrypt = \null

$tied_identity

If set, indicates that this identity matches the given to address.

public int $tied_identity = \null

$_addresses

The list of error addresses.

protected array<string|int, mixed> $_addresses = array()

Methods

addAddress()

Add an address to the bad list.

public addAddress(Horde_Mail_Rfc822_Object $address, Exception|string $msg[, int $level = self::BAD ]) : mixed
Parameters
$address : Horde_Mail_Rfc822_Object

Bad address.

$msg : Exception|string

Error message.

$level : int = self::BAD

Severity level.

count()

Returns the number of error addresses.

public count() : int
Return values
int

The number of error addresses.

getIterator()

public getIterator() : ArrayIterator
Return values
ArrayIterator

log()

Log error message.

public log([string $level = 'ERR' ]) : bool
Parameters
$level : string = 'ERR'

Level to log at.

Return values
bool

True if message was logged.


        
On this page

Search results