protected function setState($state) { if ($state instanceof self) { $state = $state->getState(); } $this->_currentFilters = $state['filters']; $this->_ancestor = $state['ancestorOf']; $this->_descendant = $state['descendantOf']; $this->setAllElements($state['elements']); }