[ class tree: Net_Growl ] [ index: Net_Growl ] [ all elements ]

File: gntpAdapterSocketCallbacks.php

Source Location: /Net_Growl-2.7.0/examples/gntpAdapterSocketCallbacks.php


Page Details:

Socket callbacks example that send notifications to Growl using the new GNTP/1.0 protocol

Callbacks are sent back to the sending application when an action is taken in response to a notification.

PHP version 5


require_once('Net/Growl/Autoload.php') [line 21]

cbNotify [line 37]

void cbNotify( string $result, string $context, string $type, string $timestamp)

Callback function when notification response is returned


string   $result   Notification-Callback-Result: header, result [CLICKED|CLOSED|TIMEDOUT] | [CLICK|CLOSE|TIMEOUT]
string   $context   Notification-Callback-Context: header, result from the original request
string   $type   Notification-Callback-Context-Type: header, result from the original request
string   $timestamp   Notification-Callback-Timestamp: header, result The date and time the callback occurred
[ Top ]

Documentation generated on Wed, 09 Dec 2015 23:03:44 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.