Inherited Variables

Inherited Methods

Class Details

This package makes it possible to easily send a notification from your PHP script to Growl.

Growl is a global notification system for Mac OS X. Any application can send a notification to Growl, which will display an attractive message on your screen. Growl currently works with a growing number of applications.

The class provides the following capabilities:

Register your PHP application in Growl.

Let Growl know what kind of notifications to expect.

Notify Growl.

Set a maximum number of notifications to be displayed (beware the loops !).

Method Detail

This method instantiate a new Net_Growl object and opens a socket connection to the specified Growl socket server. Currently, only UDP is supported by Growl. The constructor registers a shutdown function Net_Growl::_Net_Growl() that closes the socket if it is open.

Growl notifications have a name, a title, a description and a few options, depending on the kind of display plugin you use. The bubble plugin is recommended, until there is a plugin more appropriate for these kind of notifications.

The current options supported by most Growl plugins are:

array('priority' => 0, 'sticky' => false)

sticky: whether the bubble stays on screen until the user clicks on it.