protected function updateChilds() {
		foreach($this->fields as $name=>$field) {
			if($field instanceof self) {
				$field->setData(
					(isset($this->data[$name]) ? $this->data[$name]:[])
				);
			}
			elseif($field instanceof Field) {
				if(isset($this->data[$name]))
					$field->setValue($this->data[$name]);
				elseif($this->sent())
					$field->setValue(null);
			}
		}
	}
protected function updateChilds() {
		foreach($this->fields as $name=>$field) {
			if($field instanceof self) {
				$field->setData(
					(isset($this->data[$name]) ? $this->data[$name]:[])
				);
			}
			elseif($field instanceof Field) {
				if(isset($this->data[$name]))
					$field->setValue($this->data[$name]);
				elseif($this->sent())
					$field->setValue(null);
			}
		}
	}
protected function updateChilds ( ) { foreach ( $ this -> fields as $ name => $ field ) { if ( $ field instanceof self ) { $ field -> setData ( ( isset ( $ this -> data [ $ name ] ) ? $ this -> data [ $ name ] : [ ] ) ) ; } elseif ( $ field instanceof Field ) { if ( isset ( $ this -> data [ $ name ] ) ) $ field -> setValue ( $ this -> data [ $ name ] ) ; elseif ( $ this -> sent ( ) ) $ field -> setValue ( null ) ; } } }
Update children data.
Update children data .