Craft\Neo_CriteriaModel::setState PHP Method

setState() protected method

Sets all saved, private settings to the criteria model, to be used when copying.
protected setState ( array\Neo_CriteriaModel $state )
$state array\Neo_CriteriaModel
    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']);
    }