Ejemplo n.º 1
0
 public function execute($input)
 {
     if ($input['cas'] == 1) {
         $request = requetemysql::remove_space(array('login' => $input['login'], 'mail' => $input['mail']));
     } else {
         if ($input['cas'] == 2) {
             $request = requetemysql::allow_space(array('mon_login' => $input['login'], 'mon_nom' => $input['nom'], 'mon_email' => $input['mail'], 'mon_password' => $input['pass'], 'mon_adresse' => $input['adresse'], 'mon_code_postal' => $input['code'], 'ma_commune' => $input['commune'], 'mon_telephone' => $input['tel1'], 'mon_telephone2' => $input['tel2']));
         }
     }
     // do something
     return $request;
 }