\Horde_Alarm_Handler_Notify

The Horde_Alarm_Handler_Notification class is a Horde_Alarm handler that notifies of active alarms over the Horde_Notification system.

Summary

Methods
Properties
Constants
notify()
reset()
getDescription()
getParameters()
__construct()
$alarm
No constants found
No protected methods found
$_notification
$_soundPlayed
N/A
No private methods found
No private properties found
N/A

Properties

$alarm

$alarm : 

The alarm object to that this handler is attached.

Horde_Alarm

Type

$_notification

$_notification : object

A notification handler injector.

Type

object

$_soundPlayed

$_soundPlayed : boolean

Whether a sound already had been played during the page request.

Type

boolean

Methods

notify()

notify(array  $alarm) 

Notifies about an alarm through Horde_Notification.

Parameters

array $alarm

An alarm hash.

reset()

reset(array  $alarm) 

Resets the internal status of the handler, so that alarm notifications are sent again.

Parameters

array $alarm

An alarm hash.

getDescription()

getDescription() : string

Returns a human readable description of the handler.

Returns

string

getParameters()

getParameters() : array

Returns a hash of user-configurable parameters for the handler.

The parameters are hashes with parameter names as keys and parameter information as values. The parameter information is a hash with the following keys:

  • type: the parameter type as a preference type.
  • desc: a parameter description.
  • required: whether this parameter is required.

Returns

array

__construct()

__construct(array  $params = null) 

Constructor.

Parameters

array $params

Any parameters that the handler might need. Required parameter:

  • notification: (object) A factory that implements create() and returns a Notification object.

Throws

\Horde_Alarm_Exception