/** * @return void * @desc Re-build from data posted by this control the data object this control is editing */ function BuildPostedDataObject() { $o_person = new User(); if (isset($_POST['known_as'])) { $o_person->SetName($_POST['known_as']); } if (isset($_POST['email'])) { $o_person->SetEmail($_POST['email']); } if (isset($_POST['password1'])) { $o_person->SetPassword($_POST['password1']); } if (isset($_POST['password2'])) { $o_person->SetPasswordConfirmation($_POST['password2']); } $this->SetDataObject($o_person); }