Documentation

Horde_Core_Alarm_Handler_Desktop extends Horde_Alarm_Handler
in package

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

Tags
author

Jan Schneider jan@horde.org

Table of Contents

Properties

$_icon  : string
An icon URL.
$_jsNotify  : callable
A notification callback.

Methods

__construct()  : mixed
Constructor.
getDescription()  : string
Returns a human readable description of the handler.
notify()  : mixed
Notifies about an alarm through javascript.

Properties

$_icon

An icon URL.

protected string $_icon

$_jsNotify

A notification callback.

protected callable $_jsNotify

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:

  • js_notify: A Horde_Notification_Handler instance. Optional parameter:
  • icon: URL of an icon to display. @todo Change this to be dynamically generated when needed.

getDescription()

Returns a human readable description of the handler.

public getDescription() : string
Return values
string

notify()

Notifies about an alarm through javascript.

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

An alarm hash.


        
On this page

Search results