// Mark the nodes of the tree to return
if ($filterFunction) {
// First store the other filter, it will be called manually by our replacement filter.
// Otherwise search wouldn't work.
$this->otherMarkingFunction = $filterFunction;
}
$obj->setMarkingFilterFunction(array($this, 'filterMarking'));