PHP Класс Uecode\Bundle\QPushBundle\Provider\AbstractProvider

Автор: Keith Kirk ([email protected])
Наследование: implements Uecode\Bundle\QPushBundle\Provider\ProviderInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$cache Doctrine\Common\Cache\Cache Doctrine APC Cache Driver
$logger Monolog\Logger Monolog Logger
$name string QPush Queue Name
$options array QPush Queue Options

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

Метод Описание
create ( )
delete ( $id )
destroy ( )
getCache ( ) {@inheritDoc}
getName ( ) {@inheritDoc}
getNameWithPrefix ( ) {@inheritDoc}
getOptions ( ) {@inheritDoc}
getProvider ( )
getlogger ( ) {@inheritDoc}
log ( $level, $message, array $context = [] ) {@inheritDoc}
mergeOptions ( array $options = [] ) : array Merge override options while restricting what keys are allowed
onMessageReceived ( Uecode\Bundle\QPushBundle\Event\MessageEvent $event ) : boolean
onNotification ( Uecode\Bundle\QPushBundle\Event\NotificationEvent $event, string $eventName, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) : boolean
publish ( array $message, array $options = [] )
receive ( array $options = [] )

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

create() абстрактный публичный Метод

abstract public create ( )

delete() абстрактный публичный Метод

abstract public delete ( $id )

destroy() абстрактный публичный Метод

abstract public destroy ( )

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

{@inheritDoc}
public getCache ( )

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

{@inheritDoc}
public getName ( )

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

{@inheritDoc}
public getNameWithPrefix ( )

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

{@inheritDoc}
public getOptions ( )

getProvider() абстрактный публичный Метод

abstract public getProvider ( )

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

{@inheritDoc}
public getlogger ( )

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

{@inheritDoc}
public log ( $level, $message, array $context = [] )
$context array

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

Merge override options while restricting what keys are allowed
public mergeOptions ( array $options = [] ) : array
$options array An array of options that override the queue defaults
Результат array

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

public onMessageReceived ( Uecode\Bundle\QPushBundle\Event\MessageEvent $event ) : boolean
$event Uecode\Bundle\QPushBundle\Event\MessageEvent
Результат boolean

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

public onNotification ( Uecode\Bundle\QPushBundle\Event\NotificationEvent $event, string $eventName, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher ) : boolean
$event Uecode\Bundle\QPushBundle\Event\NotificationEvent
$eventName string Name of the event
$dispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
Результат boolean

publish() абстрактный публичный Метод

abstract public publish ( array $message, array $options = [] )
$message array
$options array

receive() абстрактный публичный Метод

abstract public receive ( array $options = [] )
$options array

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

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

Doctrine APC Cache Driver
protected Cache,Doctrine\Common\Cache $cache
Результат Doctrine\Common\Cache\Cache

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

Monolog Logger
protected Logger,Monolog $logger
Результат Monolog\Logger

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

QPush Queue Name
protected string $name
Результат string

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

QPush Queue Options
protected array $options
Результат array