EPG PHP SDK
Loading...
Searching...
No Matches
NotificationHandler Class Reference

Public Member Functions

 setNotificationCallback (mixed $callback)
 Sets the callback function to be used when a notification is received.
 
 handleNotification ()
 Handles incoming notifications, typically sent via HTTP POST requests.
 

Member Function Documentation

◆ handleNotification()

handleNotification ( )

Handles incoming notifications, typically sent via HTTP POST requests.

This method reads the raw POST data, typically XML or JSON, and passes it to the callback function.

Exceptions

Exception If there's an error in fetching the input data.

◆ setNotificationCallback()

setNotificationCallback ( mixed  $callback)

Sets the callback function to be used when a notification is received.

Parameters
mixed$callbackThe callback function to handle the notification.

The documentation for this class was generated from the following file: