Craft\Neo_CriteriaModel::setAttribute PHP Method

setAttribute() public method

Sets a filter value for the criteria model, then reruns Live Preview filtering.
public setAttribute ( string $name, mixed $value ) : boolean
$name string
$value mixed
return boolean
    public function setAttribute($name, $value)
    {
        if (parent::setAttribute($name, $value)) {
            $method = '__' . $name;
            // Only bother setting and rerunning the filter if there exists a filtering method for it.
            if (method_exists($this, $method)) {
                $this->_currentFilters[$name] = $value;
                $this->_runCriteria();
            }
            return true;
        }
        return false;
    }