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

File: gntpAdapterSocketCallbacks.php

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

Classes:

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

Includes:

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

GROWL_NOTIFY_PHPERROR [line 47]

GROWL_NOTIFY_PHPERROR = 'PHPERROR'

[ Top ]



GROWL_NOTIFY_STATUS [line 46]

GROWL_NOTIFY_STATUS = 'STATUS'

[ Top ]



cbNotify [line 37]

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

Callback function when notification response is returned


Parameters

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 Mon, 11 Mar 2019 15:52:31 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.