当前位置: 首页>>代码示例>>PHP>>正文


PHP APP::logErrors方法代码示例

本文整理汇总了PHP中APP::logErrors方法的典型用法代码示例。如果您正苦于以下问题:PHP APP::logErrors方法的具体用法?PHP APP::logErrors怎么用?PHP APP::logErrors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在APP的用法示例。


在下文中一共展示了APP::logErrors方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getSesCopay

 function getSesCopay($sesId)
 {
     $sesCopayAmt = array("amount" => 0, "place" => 0);
     try {
         if ($sesId > 0) {
             $sqlGetSes = "SELECT cs.clientID, cs.providerID, cs.sessionDate, cs.fee, cs.adj_fee, \n\t\t\t\t\t\t\tcs.other_ins_adj, cs.amt_paid, cs.out_of_network_ins_type, cs.client_copay,\n\t\t\t\t\t\t\tcs.procedureID, cs.pending_personinsurance_id, pp.code\n\t\t\t\t\t\t\tFROM clientsession AS cs \n\t\t\t\t\t\t\tLEFT JOIN providerprocedure AS pp ON cs.procedureID = pp.id\n\t\t\t\t\t\t\tWHERE cs.id = '{$sesId}'\n\t\t\t\t\t\t\tAND cs.sessionStatus = 1";
             $resGetSes = DB::do_query($sqlGetSes);
             if (DB::db_fetch_num_rows($resGetSes) > 0) {
                 $rowGetSes = DB::db_fetch_assoc($resGetSes);
                 $clientId = $rowGetSes['clientID'];
                 $providerId = $rowGetSes['providerID'];
                 $sesDate = $rowGetSes['sessionDate'];
                 $sesProc = $rowGetSes['code'];
                 $sesFee = $rowGetSes['fee'];
                 $sesAdjFee = $rowGetSes['adj_fee'];
                 $sesOthInsAdj = $rowGetSes['other_ins_adj'];
                 $sesInsPay = $rowGetSes['amt_paid'];
                 $sesInsCopay = $rowGetSes['client_copay'];
                 $pendingInsId = $rowGetSes['pending_personinsurance_id'];
                 $ONNType = $rowGetSes['out_of_network_ins_type'];
                 if ($ONNType == 1) {
                     $sesCopayAmt['amount'] = 0;
                     $sesCopayAmt['place'] = 0;
                 } else {
                     if ($pendingInsId == 0) {
                         $sesCopayAmt['amount'] = 0;
                         $sesCopayAmt['place'] = 0;
                     } else {
                         if ($sesInsCopay > 0) {
                             // if copay set by insurance, we have to this as priority
                             $sesCopayAmt["amount"] = $sesInsCopay;
                             $sesCopayAmt["place"] = 1;
                         } else {
                             $balMethod = new GetBalMethod();
                             $clientBalCalMethod = array();
                             $clientBalCalMethod = $balMethod->checkClientBalCalcMethodToUse(strtotime($sesDate), $clientId, $providerId, $sesProc);
                             if (count($clientBalCalMethod) && $clientBalCalMethod['method'] == 2) {
                                 if (array_key_exists($sesProc, $clientBalCalMethod['copay'])) {
                                     $sesCopayAmt['amount'] = $clientBalCalMethod['copay'][$sesProc];
                                 } else {
                                     $sesCopayAmt['amount'] = $balMethod->getFirstCopayUcrAmount($clientBalCalMethod['balCustId'], $sesProc, 1);
                                 }
                                 $sesCopayAmt['place'] = 0;
                             }
                         }
                     }
                 }
             }
         }
     } catch (Exception $e) {
         APP::logErrors($e);
     }
     return $sesCopayAmt;
 }
开发者ID:tapaswipanda,项目名称:jenkinstest,代码行数:54,代码来源:sonar-test.php


注:本文中的APP::logErrors方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。