public function setValues($values)
    {

		foreach($values as $key => $value){
			foreach($this->elements as $element){
				if($element->getName() == $key){
					if( $element instanceof tao_helpers_form_elements_Checkbox ||
						(method_exists($element, 'setValues') && is_array($value)) ){
						$element->setValues($value);
					}
					else{
						$element->setValue($value);
					}
					break;
				}
			}

		}

    }
public function setValues($values)
    {

		foreach($values as $key => $value){
			foreach($this->elements as $element){
				if($element->getName() == $key){
					if( $element instanceof tao_helpers_form_elements_Checkbox ||
						(method_exists($element, 'setValues') && is_array($value)) ){
						$element->setValues($value);
					}
					else{
						$element->setValue($value);
					}
					break;
				}
			}

		}

    }
public function setValues ( $ values ) { foreach ( $ values as $ key => $ value ) { foreach ( $ this -> elements as $ element ) { if ( $ element -> getName ( ) == $ key ) { if ( $ element instanceof tao_helpers_form_elements_Checkbox || ( method_exists ( $ element , 'setValues' ) && is_array ( $ value ) ) ) { $ element -> setValues ( $ value ) ; } else { $ element -> setValue ( $ value ) ; } break ; } } } }
Update manually the values of the form

@access public
@author Cédric Alfonsi, <cedric.alfonsi@tudor.lu>
@param  array $values
Update manually the values of the form