Horde_PubSub_Handle::__construct PHP Method

__construct() public method

Constructor
public __construct ( string $topic, string | object $context, string | null $handler = null )
$topic string Topic to which handle is subscribed
$context string | object Function name, class name, or object instance
$handler string | null Method name, if $context is a class or object
    public function __construct($topic, $context, $handler = null)
    {
        $this->_topic = $topic;
        if (null === $handler) {
            $this->_callback = $context;
        } else {
            $this->_callback = array($context, $handler);
        }
    }