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;
}