\Horde_Alarm_Handler_Desktop

The Horde_Alarm_Handler_Desktop class is a Horde_Alarm handler that notifies of active alarms by desktop notification through webkit browsers.

Summary

Methods
Properties
Constants
notify()
reset()
getDescription()
getParameters()
__construct()
$alarm
No constants found
No protected methods found
$_jsNotify
$_icon
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

$_jsNotify

$_jsNotify : callback

A notification callback.

Type

callback

$_icon

$_icon : string

An icon URL.

Type

string

Methods

notify()

notify(array  $alarm) 

Notifies about an alarm through javascript.

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:

  • js_notify: A Horde_Notification_Handler instance. Optional parameter:
  • icon: URL of an icon to display.