PHP Класс Jackalope\Observation\ObservationManager

Jackalope does not implement event listeners because we would need to poll Jackrabbit on a regular basis to check if an event occurred but there is nothing like threads in PHP.
Автор: D. Barsotti ([email protected])
Наследование: implements IteratorAggregat\IteratorAggregate, implements PHPCR\Observation\ObservationManagerInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$factory Jackalope\FactoryInterface
$session PHPCR\SessionInterface
$transport Jackalope\Transport\ObservationInterface

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

Метод Описание
__construct ( Jackalope\FactoryInterface $factory, PHPCR\SessionInterface $session, Jackalope\Transport\ObservationInterface $transport )
addEventListener ( PHPCR\Observation\EventListenerInterface $listener, PHPCR\Observation\EventFilterInterface $filter ) {@inheritDoc}
createEventFilter ( ) {@inheritDoc}
getEventJournal ( PHPCR\Observation\EventFilterInterface $filter ) {@inheritDoc}
getIterator ( ) : Traversable
getRegisteredEventListeners ( ) {@inheritDoc}
removeEventListener ( PHPCR\Observation\EventListenerInterface $listener ) {@inheritDoc}
setUserData ( $userData ) {@inheritDoc}

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

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

public __construct ( Jackalope\FactoryInterface $factory, PHPCR\SessionInterface $session, Jackalope\Transport\ObservationInterface $transport )
$factory Jackalope\FactoryInterface
$session PHPCR\SessionInterface
$transport Jackalope\Transport\ObservationInterface

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

{@inheritDoc}
public addEventListener ( PHPCR\Observation\EventListenerInterface $listener, PHPCR\Observation\EventFilterInterface $filter )
$listener PHPCR\Observation\EventListenerInterface
$filter PHPCR\Observation\EventFilterInterface

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

{@inheritDoc}
public createEventFilter ( )

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

{@inheritDoc}
public getEventJournal ( PHPCR\Observation\EventFilterInterface $filter )
$filter PHPCR\Observation\EventFilterInterface

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

См. также: getRegisteredEventListeners
public getIterator ( ) : Traversable
Результат Traversable The list of event listeners

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

{@inheritDoc}

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

{@inheritDoc}
public removeEventListener ( PHPCR\Observation\EventListenerInterface $listener )
$listener PHPCR\Observation\EventListenerInterface

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

{@inheritDoc}
public setUserData ( $userData )

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

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

protected FactoryInterface,Jackalope $factory
Результат Jackalope\FactoryInterface

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

protected SessionInterface,PHPCR $session
Результат PHPCR\SessionInterface

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

protected ObservationInterface,Jackalope\Transport $transport
Результат Jackalope\Transport\ObservationInterface