public function filterAttributes($attributeNames = null)
    {
        $this->beforeFilter();

        if ($attributeNames === null) {
            $attributeNames = $this->activeFilterAttributes();
        }

        if (empty($attributeNames)) {
            return;
        }

        foreach ($this->getActiveFilters() as $validator) {
            $validator->validateAttributes($this, $attributeNames);
        }
        $this->afterFilter();
    }
public function filterAttributes($attributeNames = null)
    {
        $this->beforeFilter();

        if ($attributeNames === null) {
            $attributeNames = $this->activeFilterAttributes();
        }

        if (empty($attributeNames)) {
            return;
        }

        foreach ($this->getActiveFilters() as $validator) {
            $validator->validateAttributes($this, $attributeNames);
        }
        $this->afterFilter();
    }
public function filterAttributes ( $ attributeNames = null ) { $ this -> beforeFilter ( ) ; if ( $ attributeNames === null ) { $ attributeNames = $ this -> activeFilterAttributes ( ) ; } if ( empty ( $ attributeNames ) ) { return ; } foreach ( $ this -> getActiveFilters ( ) as $ validator ) { $ validator -> validateAttributes ( $ this , $ attributeNames ) ; } $ this -> afterFilter ( ) ; }
Performs the data filtering.

This method executes the filtering rules applicable to the current [[scenario]].

@param array $attributeNames list of attribute names that should be filtered.
If this parameter is empty, it means any attribute listed in the applicable
filtering rules should be filtered.
Performs the data filtering .