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


PHP A2Billing::set_instance_table方法代码示例

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


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

示例1: RateEngine

     $action = "update";
     //Filter phone number holded and stoped
     if ($result_search_phonestatus[0][0] == 1 || $result_search_phonestatus[0][0] == 2) {
         continue;
     }
     if ($result_search_phonestatus[0][1] == 0) {
         if ($verbose_level >= 1) {
             echo "\n[  Can't send callback -> number {$phone['1']} is not in the frequency ]";
         }
         continue;
     }
 } else {
     $action = "insert";
 }
 // Search Road...
 $A2B->set_instance_table($instance_table);
 $A2B->cardnumber = $phone["username"];
 $error_msg = '';
 if ($A2B->callingcard_ivr_authenticate_light($error_msg)) {
     $RateEngine = new RateEngine();
     $RateEngine->webui = 0;
     // LOOKUP RATE : FIND A RATE FOR THIS DESTINATION
     $A2B->agiconfig['accountcode'] = $phone["username"];
     $A2B->agiconfig['use_dnid'] = 1;
     $A2B->agiconfig['say_timetocall'] = 0;
     $A2B->dnid = $A2B->destination = $phone["number"];
     $resfindrate = $RateEngine->rate_engine_findrates($A2B, $phone["number"], $phone["tariff"]);
     // IF FIND RATE
     if ($resfindrate != 0) {
         $res_all_calcultimeout = $RateEngine->rate_engine_all_calcultimeout($A2B, $A2B->credit);
         if ($res_all_calcultimeout) {
开发者ID:pearlvoip,项目名称:a2billing,代码行数:31,代码来源:a2billing_batch_autodialer.php

示例2: dirname

* @version    CVS: $Id:$
* @since      File available since Release 1.4
*
*/
include_once dirname(__FILE__) . "/lib/Class.Table.php";
include dirname(__FILE__) . "/lib/Class.A2Billing.php";
include dirname(__FILE__) . "/lib/Misc.php";
include dirname(__FILE__) . "/lib/interface/constants.php";
$instance_table = new Table();
$idconfig = 1;
$mode = 'standard';
$A2B = new A2Billing();
$A2B->load_conf($agi, NULL, 0, $idconfig);
$A2B->mode = $mode;
$global_instance_table = new Table();
$A2B->set_instance_table($global_instance_table);
$instance_table = new Table();
if (!$A2B->DbConnect()) {
    exit;
}
define("WRITELOG_QUERY", true);
$instance_table = new Table();
$A2B->set_instance_table($instance_table);
$table = new Table();
//$table -> debug_st = 1;
$mytopg = new MytoPg(0);
// debug level
$WHERE = 'id < \'100\'';
$WHEREREP = 'id < \'100\'';
$WWHERE = "WHERE {$WHERE}";
$WWHEREREP = "WHERE {$WHEREREP}";
开发者ID:hellbound,项目名称:a2billing-mod,代码行数:31,代码来源:test-0001-MytoPg.php


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