get()); //~ if($choix_niv2 === ZenitySetup::$type_client['entrees'][0]) //~ { //~ echo "choix: " . $choix_niv2 . "\n"; //~ $Customer->setType('client'); //~ } //~ elseif($choix_niv2 === ZenitySetup::$type_client['entrees'][1]) //~ { //~ echo "choix: " . $choix_niv2 . "\n"; //~ $Customer->setType('prospect'); //~ } //~ else //~ { //~ return [0, null]; // menu principal //~ } // -- partie 2: saisie des infos -- if($Customer->enterCustomer($NouveauClient)) { // -- partie 3: on fait quoi maintenant -- $choix_niv3 = exec($FinSection1->get()); if($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][0]) { return [2, $Customer]; // section 2: newService() } elseif($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][1]) { return [3, $Customer]; // section 3: modifyData() } elseif($choix_niv3 === ZenitySetup::$fin_section_1['entrees'][2]) { return [1, null]; // relancer section 1: newCustomer() } else { return [0, null]; // menu principal } } return [0, null]; // menu principal }