Пример #1
0
 public function execute($input)
 {
     if ($input['memoire2'] == 'true') {
         $date_ref = date("d/m/Y", mktime(0, 0, 0, date("m", $input['ma_date']) - $input['memoire'], 1, date("Y", $input['ma_date'])));
     } else {
         $date_ref = $input['date_ref'];
     }
     $team = json_decode($input['team']);
     $team2 = json_decode($input['team2']);
     $agenda = json_decode($input['agenda'], true);
     $date_debut = $input['date_debut'];
     $date_fin = $input['date_fin'];
     $cas = $input['cas'];
     $print_resultat = requetemysql::print_result4(array('team' => $team, 'team2' => $team2, 'date_ref' => $date_ref, 'date_debut' => $date_debut, 'date_fin' => $date_fin, 'agenda' => $agenda, 'cas' => $cas));
     // do something
     return $print_resultat;
 }