PHP Класс Horde_PubSub_Handle, horde

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_callback string | array PHP callback to invoke
$_topic string Topic to which this handle is subscribed

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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() публичный Метод

Invoke handler
public call ( array $args ) : void
$args array Arguments to pass to callback
Результат void

getCallback() публичный Метод

Retrieve registered callback
public getCallback ( ) : string | array
Результат string | array

getTopic() публичный Метод

Get topic to which handle is subscribed
public getTopic ( ) : string
Результат string

Описание свойств

$_callback защищенное свойство

PHP callback to invoke
protected string|array $_callback
Результат string | array

$_topic защищенное свойство

Topic to which this handle is subscribed
protected string $_topic
Результат string