/** * @return void * @desc Re-build from data posted by this control the data object this control is editing */ function BuildPostedDataObject() { $this->o_data_object = new PostalAddress(); $this->o_data_object->SetSaon($_POST['saon']); $this->o_data_object->SetPaon($_POST['paon']); $this->o_data_object->SetStreetDescriptor($_POST['streetDescriptor']); $this->o_data_object->SetLocality($_POST['locality']); $this->o_data_object->SetTown($_POST['town']); $this->o_data_object->SetAdministrativeArea($_POST['county']); $this->o_data_object->SetPostcode($_POST['postcode']); $this->o_data_object->SetGeoLocation(isset($_POST['lat']) ? $_POST['lat'] : null, isset($_POST['long']) ? $_POST['long'] : null, isset($_POST['geoprecision']) ? $_POST['geoprecision'] : null); }