PHP Class Horde_PubSub_Handle, horde

Mostrar archivo Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_callback string | array PHP callback to invoke
$_topic string Topic to which this handle is subscribed

Public Methods

Method Description
__construct ( string $topic, string | object $context, string | null $handler = null ) Constructor
call ( array $args ) : void Invoke handler
getCallback ( ) : string | array Retrieve registered callback
getTopic ( ) : string Get topic to which handle is subscribed

Method Details

__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

call() public method

Invoke handler
public call ( array $args ) : void
$args array Arguments to pass to callback
return void

getCallback() public method

Retrieve registered callback
public getCallback ( ) : string | array
return string | array

getTopic() public method

Get topic to which handle is subscribed
public getTopic ( ) : string
return string

Property Details

$_callback protected_oe property

PHP callback to invoke
protected string|array $_callback
return string | array

$_topic protected_oe property

Topic to which this handle is subscribed
protected string $_topic
return string