public function activeFilterAttributes()
    {
        $scenario = $this->getScenario();
        $scenarios = $this->filteringScenarios();

        $attributes = isset($scenarios[$scenario]) ? $scenarios[$scenario] : $scenarios[ActiveRecord::SCENARIO_DEFAULT];
        foreach ($attributes as $i => $attribute) {
            if ($attribute[0] === '!') {
                $attributes[$i] = substr($attribute, 1);
            }
        }

        return $attributes;
    }
public function activeFilterAttributes()
    {
        $scenario = $this->getScenario();
        $scenarios = $this->filteringScenarios();

        $attributes = isset($scenarios[$scenario]) ? $scenarios[$scenario] : $scenarios[ActiveRecord::SCENARIO_DEFAULT];
        foreach ($attributes as $i => $attribute) {
            if ($attribute[0] === '!') {
                $attributes[$i] = substr($attribute, 1);
            }
        }

        return $attributes;
    }
public function activeFilterAttributes ( ) { $ scenario = $ this -> getScenario ( ) ; $ scenarios = $ this -> filteringScenarios ( ) ; $ attributes = isset ( $ scenarios [ $ scenario ] ) ? $ scenarios [ $ scenario ] : $ scenarios [ ActiveRecord :: SCENARIO_DEFAULT ] ; foreach ( $ attributes as $ i => $ attribute ) { if ( $ attribute [ 0 ] === '!' ) { $ attributes [ $ i ] = substr ( $ attribute , 1 ) ; } } return $ attributes ; }
Returns the attribute names that are subject to validation in the current scenario.
@return string[] safe attribute names
Returns the attribute names that are subject to validation in the current scenario .