BaseCCodeModel::sticky PHP Method

sticky() public method

This validator does not really validate the attributes. It actually saves the attribute value in a file to make it sticky.
public sticky ( string $attribute, array $params )
$attribute string the attribute to be validated
$params array the validation parameters
    public function sticky($attribute, $params)
    {
        if (!$this->hasErrors()) {
            $this->_stickyAttributes[$attribute] = $this->{$attribute};
        }
    }