phpcr/src/PHPCR/Observation/EventFilterInterface.php
Copyright 2008-2011 Karsten Dambekalns karsten@typo3.org
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
\PHPCR\Observation\EventFilterInterface
A blank EventFilter is acquired through ObservationManager::createEventFilter().
The parameters of the filter can then be set by chaining the set methods, since each method returns the same EventFilter with the indicated parameter set.
Once the filter is configured, it and an EventListenerInterface object are passed to ObservationManager::addEventListener().
The filter restricts which events are sent to the EventListener according to the following parameters. Note that the term associated parent node of an event means the parent node of the item at (or formerly at) the path returned by EventInterface::getPath().
- Api
- Since
- JCR 2.1
Methods
getEventTypes() : \PHPCR\Observation\int.
Returns the eventTypes parameter of the filter.
Type | Description |
---|---|
\PHPCR\Observation\int. |
getNoLocal() : \PHPCR\Observation\boolean.
Returns the noLocal parameter of the filter.
Type | Description |
---|---|
\PHPCR\Observation\boolean. |
getNodeTypes() : string[]
Returns the nodeTypeName parameter of the filter.
Type | Description |
---|---|
string[] |
setAbsPath(string $absPath) : \PHPCR\Observation\EventFilterInterface
Sets the absPath parameter of the filter.
If left unset, this parameter defaults to null.
Name | Type | Description |
---|---|---|
$absPath | string | an absolute path String. |
Type | Description |
---|---|
\PHPCR\Observation\EventFilterInterface | this filter object with the absPath parameter set. |
setEventTypes(int $eventTypes) : \PHPCR\Observation\EventFilterInterface
Sets the eventTypes parameter of the filter.
If left unset, this parameter defaults to null.
Name | Type | Description |
---|---|---|
$eventTypes | int | an int. |
Type | Description |
---|---|
\PHPCR\Observation\EventFilterInterface | this filter object with the eventTypes parameter set. |
setIdentifiers(string[] $identifiers) : \PHPCR\Observation\EventFilterInterface
Sets the identifiers parameter of the filter.
If left unset, this parameter defaults to null.
Name | Type | Description |
---|---|---|
$identifiers | string[] |
Type | Description |
---|---|
\PHPCR\Observation\EventFilterInterface | this filter object with the absPath parameter set. |
setIsDeep(boolean $isDeep) : \PHPCR\Observation\EventFilterInterface
Sets the isDeep parameter of the filter.
If left unset, this parameter defaults to false.
Name | Type | Description |
---|---|---|
$isDeep | boolean |
Type | Description |
---|---|
\PHPCR\Observation\EventFilterInterface | this filter object with the absPath parameter set. |
setNoLocal(boolean $noLocal) : \PHPCR\Observation\EventFilterInterface
Sets the noLocal parameter of the filter.
If left unset, this parameter defaults to false.
Name | Type | Description |
---|---|---|
$noLocal | boolean |
Type | Description |
---|---|
\PHPCR\Observation\EventFilterInterface | this filter object with the absPath parameter set. |
setNodeTypes(string[] $nodeTypes) : \PHPCR\Observation\EventFilterInterface
Sets the nodeTypeName parameter of the filter.
If left unset, this parameter defaults to null.
Name | Type | Description |
---|---|---|
$nodeTypes | string[] | names of the node types to filter on |
Type | Description |
---|---|
\PHPCR\Observation\EventFilterInterface | this filter object with the absPath parameter set. |