public function setData( array $array ) {
        foreach( $array as $name=>$value ) {
            if( !isset( $this->nameHash[$name] ) ) {
                continue;
            }

            $element = $this->nameHash[$name];

            $element->setAttribute( 'value', (string)$value );
        }
    }
public function setData( array $array ) {
        foreach( $array as $name=>$value ) {
            if( !isset( $this->nameHash[$name] ) ) {
                continue;
            }

            $element = $this->nameHash[$name];

            $element->setAttribute( 'value', (string)$value );
        }
    }
public function setData ( array $ array ) { foreach ( $ array as $ name => $ value ) { if ( ! isset ( $ this -> nameHash [ $ name ] ) ) { continue ; } $ element = $ this -> nameHash [ $ name ] ; $ element -> setAttribute ( 'value' , ( string ) $ value ) ; } }
Sets the form elements values given an array of name=>value pairs.

@param $array the array of data to set
Sets the form elements values given an array of name = > value pairs .