PHP Class Horde_Imap_Client_Base_Alerts, horde

Since: 2.24.0
Author: Michael Slusarz ([email protected])
Inheritance: implements SplSubject
Mostrar archivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_alert object Alert data.
$_observers array Observers.

Public Methods

Method Description
add ( string $alert, string $type = null ) Add an alert.
attach ( SplObserver $observer )
detach ( SplObserver $observer )
getLast ( ) : object Returns the last alert received.
notify ( ) Notification is triggered internally whenever the object's internal data storage is altered.

Method Details

add() public method

Add an alert.
public add ( string $alert, string $type = null )
$alert string The alert string.
$type string The alert type.

attach() public method

public attach ( SplObserver $observer )
$observer SplObserver

detach() public method

public detach ( SplObserver $observer )
$observer SplObserver

getLast() public method

Returns the last alert received.
public getLast ( ) : object
return object Alert information. Object with these properties:
  - alert: (string) Alert string.
  - type: (string) [OPTIONAL] Alert type.

notify() public method

Notification is triggered internally whenever the object's internal data storage is altered.
public notify ( )

Property Details

$_alert protected_oe property

Alert data.
protected object $_alert
return object

$_observers protected_oe property

Observers.
protected array $_observers
return array