code/libraries/joomlatools/library/model/state/state.php
public function setValues(array $data)
    {
        foreach($data as $key => $value) {
           $this->set($key, $value);
        }

        return $this;
    }
public function setValues(array $data)
    {
        foreach($data as $key => $value) {
           $this->set($key, $value);
        }

        return $this;
    }
public function setValues ( array $ data ) { foreach ( $ data as $ key => $ value ) { $ this -> set ( $ key , $ value ) ; } return $ this ; }
Set the state values from an array

@param   array $data An associative array of state values by name
@return  KModelState
Set the state values from an array