Overview

Packages

  • PubSub

Classes

  • Horde_PubSub
  • Horde_PubSub_Handle
  • Horde_PubSub_Provider
  • Overview
  • Package
  • Class
  • Tree

Class Horde_PubSub_Handle

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

Package: PubSub
Category: Horde
Located at Horde/PubSub/Handle.php
Methods summary
public
# __construct( string $topic, string|object $context, string|null $handler = null )

Constructor

Constructor

Parameters

$topic
Topic to which handle is subscribed
$context
Function name, class name, or object instance
$handler
Method name, if $context is a class or object
public string
# getTopic( )

Get topic to which handle is subscribed

Get topic to which handle is subscribed

Returns

string
public string|array
# getCallback( )

Retrieve registered callback

Retrieve registered callback

Returns

string|array
public
# call( array $args )

Invoke handler

Invoke handler

Parameters

$args
Arguments to pass to callback
API documentation generated by ApiGen