public static function reservefl($pardakht) { $conf = new conf(); $tt = json_decode($pardakht->log_text); $moghim_out = moghim_class::loadReserveParam($tt); $cl = new SoapClient($conf->moghim_wsdl); $param = array('rep' => &$rep, 'refer' => &$refer, 'seldate' => &$seldate, 'netlog' => $tt->netlog, 'rwaitlog' => $tt->rwaitlog, 'sexkind' => $moghim_out['sexkind'], 'fname' => $moghim_out['fname'], 'lname' => $moghim_out['lname'], 'passkind' => $moghim_out['passkind'], 'mellicode' => $moghim_out['mellicode'], 'passport' => $moghim_out['passport'], 'remark' => '', 'mobile' => '09125245831', 'cust' => $conf->moghim_cust, 'pass' => $conf->moghim_pass); /* $out = new stdClass(); $out->reserveflResult = TRUE; $out->refer = 'PDYPIQ'; $out->seldate = '94/05/27'; $out->rep = ''; return($out); */ return $cl->reservefl($param); }