PHP Class 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.
Author: D. Barsotti ([email protected])
Inheritance: implements IteratorAggregat\IteratorAggregate, implements PHPCR\Observation\ObservationManagerInterface
Mostrar archivo Open project: jackalope/jackalope

Protected Properties

Property Type Description
$factory Jackalope\FactoryInterface
$session PHPCR\SessionInterface
$transport Jackalope\Transport\ObservationInterface

Public Methods

Method Description
__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}

Method Details

__construct() public method

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

addEventListener() public method

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

createEventFilter() public method

{@inheritDoc}
public createEventFilter ( )

getEventJournal() public method

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

getIterator() public method

See also: getRegisteredEventListeners
public getIterator ( ) : Traversable
return Traversable The list of event listeners

getRegisteredEventListeners() public method

{@inheritDoc}

removeEventListener() public method

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

setUserData() public method

{@inheritDoc}
public setUserData ( $userData )

Property Details

$factory protected_oe property

protected FactoryInterface,Jackalope $factory
return Jackalope\FactoryInterface

$session protected_oe property

protected SessionInterface,PHPCR $session
return PHPCR\SessionInterface

$transport protected_oe property

protected ObservationInterface,Jackalope\Transport $transport
return Jackalope\Transport\ObservationInterface