$_topics
$_topics :
Subscribed topics and their handles
Publish-Subscribe provider
Use Horde_PubSub_Provider when you want to create a per-instance plugin system for your objects.
subscribe(string $topic, string|object $context, null|string $handler = null) : \Horde_PubSub_Handle
Subscribe to a topic
string | $topic | |
string|object | $context | Function name, class name, or object instance |
null|string | $handler | If $context is a class or object, the name of the method to call |
Pub-Sub handle (to allow later unsubscribe)
unsubscribe(\Horde_PubSub_Handle $handle) : boolean
Unsubscribe a handler from a topic
\Horde_PubSub_Handle | $handle |
Returns true if topic and handle found, and unsubscribed; returns false if either topic or handle not found