getEvents() public method

This method returns a buffer of events matching the filter that might lazy-load events from storage. But it may never load events that happen later than the time the buffer was created, to avoid endless looping on busy repositories.
public getEvents ( integer $date, PHPCR\Observation\EventFilterInterface $filter, PHPCR\SessionInterface $session ) : Iterator
$date integer milliseconds since the epoch - see EventJournalInterface::skipTo
$filter PHPCR\Observation\EventFilterInterface event filter the transport must apply
$session PHPCR\SessionInterface in case the transport needs this for filtering
return Iterator
Ejemplo n.º 1
0
 protected function fetchJournal()
 {
     $this->events = $this->transport->getEvents($this->currentMillis, $this->filter, $this->session);
 }