Documentation

Horde_Alarm_Handler_Notify extends Horde_Alarm_Handler
in package

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

Tags
author

Jan Schneider jan@horde.org

category

Horde

copyright

2010-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL-2.1

Table of Contents

$alarm  : mixed
The alarm object to that this handler is attached.
$_notification  : object
A notification handler injector.
$_soundPlayed  : bool
Whether a sound already had been played during the page request.
__construct()  : mixed
Constructor.
getDescription()  : string
Returns a human readable description of the handler.
getParameters()  : array<string|int, mixed>
Returns a hash of user-configurable parameters for the handler.
notify()  : mixed
Notifies about an alarm through Horde_Notification.
reset()  : mixed
Resets the internal status of the handler, so that alarm notifications are sent again.

Properties

$alarm

The alarm object to that this handler is attached.

public mixed $alarm

Horde_Alarm

$_notification

A notification handler injector.

protected object $_notification

$_soundPlayed

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

protected bool $_soundPlayed = \false

Methods

__construct()

Constructor.

public __construct([array<string|int, mixed> $params = null ]) : mixed
Parameters
$params : array<string|int, mixed> = null

Any parameters that the handler might need. Required parameter:

  • notification: (object) A factory that implements create() and returns a Notification object.
Tags
throws
Horde_Alarm_Exception
Return values
mixed

getDescription()

Returns a human readable description of the handler.

public getDescription() : string
Return values
string

getParameters()

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

public getParameters() : array<string|int, mixed>

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.
Return values
array<string|int, mixed>

notify()

Notifies about an alarm through Horde_Notification.

public notify(array<string|int, mixed> $alarm) : mixed
Parameters
$alarm : array<string|int, mixed>

An alarm hash.

Return values
mixed

reset()

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

public reset(array<string|int, mixed> $alarm) : mixed
Parameters
$alarm : array<string|int, mixed>

An alarm hash.

Return values
mixed

Search results