\Horde_PubSub_Handle

Publish-Subscribe handler: unique handle subscribed to a given topic.

Summary

Methods
Properties
Constants
__construct()
getTopic()
getCallback()
call()
No public properties found
No constants found
No protected methods found
$_callback
$_topic
N/A
No private methods found
No private properties found
N/A

Properties

$_callback

$_callback : string|array

PHP callback to invoke

Type

string|array

$_topic

$_topic : string

Topic to which this handle is subscribed

Type

string

Methods

__construct()

__construct(string  $topic, string|object  $context, string|null  $handler = null) 

Constructor

Parameters

string $topic

Topic to which handle is subscribed

string|object $context

Function name, class name, or object instance

string|null $handler

Method name, if $context is a class or object

getTopic()

getTopic() : string

Get topic to which handle is subscribed

Returns

string

getCallback()

getCallback() : string|array

Retrieve registered callback

Returns

string|array

call()

call(array  $args) : void

Invoke handler

Parameters

array $args

Arguments to pass to callback