public function states($states = null)
    {
        if ($states === null) {
            return $this->_states;
        } else {
            unset($states['id']);
            foreach ($states as $key => $value) {
                $this->_states[$key] = $value;
            }
            $this->save();
        }
    }
public function states($states = null)
    {
        if ($states === null) {
            return $this->_states;
        } else {
            unset($states['id']);
            foreach ($states as $key => $value) {
                $this->_states[$key] = $value;
            }
            $this->save();
        }
    }
public function states ( $ states = null ) { if ( $ states === null ) { return $ this -> _states ; } else { unset ( $ states [ 'id' ] ) ; foreach ( $ states as $ key => $ value ) { $ this -> _states [ $ key ] = $ value ; } $ this -> save ( ) ; } }
Get or set profiles
@param array $states
@return array
Get or set profiles