function OnPostback() { $this->school = $this->edit->GetDataObject(); # save data if valid if ($this->IsValid()) { require_once "stoolball/clubs/club-manager.class.php"; $club_manager = new ClubManager($this->GetSettings(), $this->GetDataConnection()); $id = $club_manager->Save($this->school); $this->school->SetId($id); $this->Redirect($this->school->GetNavigateUrl() . "/edit"); } }