/** * Prompts the user for creating a new request * @param WebPage $oP The current web page * @return void */ function CreateRequest(WebPage $oP, Organization $oUserOrg) { switch ($oP->GetWizardStep()) { case 0: default: SelectServiceCategory($oP, $oUserOrg); break; case 1: SelectServiceSubCategory($oP, $oUserOrg); break; case 2: SelectRequestTemplate($oP, $oUserOrg); break; case 3: RequestCreationForm($oP, $oUserOrg); break; case 4: DoCreateRequest($oP, $oUserOrg); break; } }