當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FreePBX::Superfecta方法代碼示例

本文整理匯總了PHP中FreePBX::Superfecta方法的典型用法代碼示例。如果您正苦於以下問題:PHP FreePBX::Superfecta方法的具體用法?PHP FreePBX::Superfecta怎麽用?PHP FreePBX::Superfecta使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在FreePBX的用法示例。


在下文中一共展示了FreePBX::Superfecta方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

            $displayvars = array("sources" => $sources, "scheme_data" => $conf);
            $middle = load_view(__DIR__ . '/views/scheme.php', $displayvars);
        } else {
            $middle = _("Unknown Scheme");
        }
        break;
    default:
        if (isset($_POST['type'])) {
            $scheme = $_POST['scheme_name'];
            $type = $_POST['goto0'];
            $res = FreePBX::Superfecta()->addScheme($scheme, array('DID' => $_POST['DID'], 'CID_rules' => $_POST['CID_rules'], 'Curl_Timeout' => $_POST['Curl_Timeout'], 'processor' => $_POST['processor'], 'multifecta_timeout' => $_POST['multifecta_timeout'], 'Prefix_URL' => $_POST['Prefix_URL'], 'SPAM_Text' => $_POST['SPAM_Text'], 'SPAM_Text_Substitute' => $_POST['SPAM_Text_Substitute'], 'enable_interceptor' => $_POST['enable_interceptor'], 'SPAM_threshold' => $_POST['SPAM_threshold'], 'destination' => !empty($type) ? $_POST[$type . '0'] : ''));
        }
        $middle = load_view(__DIR__ . '/views/main.php', array("schemes" => FreePBX::Superfecta()->getAllSchemes()));
}
$currentScheme = !empty($_REQUEST['scheme']) ? $_REQUEST['scheme'] : '';
$allSchemes = FreePBX::Superfecta()->getAllSchemes();
//show_view(__DIR__."/views/header.php", array("schemes" => $scheme_list));
//echo $middle;
//show_view(__DIR__.'/views/footer.php',array());
?>
<div class="container-fluid">
	<div class="row">
		<div class="col-sm-9">
			<?php 
echo $middle;
?>
		</div>
		<div class="col-sm-3 hidden-xs bootnav">
			<div class="list-group">
				<a href="?display=superfecta&amp;action=add" class="list-group-item"><i class="fa fa-plus"></i> <?php 
echo _('Add Scheme');
開發者ID:klagler,項目名稱:Caller-ID-Superfecta,代碼行數:31,代碼來源:page.superfecta.php


注:本文中的FreePBX::Superfecta方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。