本文整理匯總了PHP中FreePBX::Setcid方法的典型用法代碼示例。如果您正苦於以下問題:PHP FreePBX::Setcid方法的具體用法?PHP FreePBX::Setcid怎麽用?PHP FreePBX::Setcid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FreePBX
的用法示例。
在下文中一共展示了FreePBX::Setcid方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setcid_edit
function setcid_edit($cid_id, $description, $cid_name, $cid_num, $dest)
{
return FreePBX::Setcid()->update($cid_id, $description, $cid_name, $cid_num, $dest);
}
示例2: die
<?php
if (!defined('FREEPBX_IS_AUTH')) {
die('No direct script access allowed');
}
echo FreePBX::Setcid()->showPage();
return;
$type = isset($_REQUEST['type']) ? $_REQUEST['type'] : 'setup';
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : '';
if (isset($_REQUEST['delete'])) {
$action = 'delete';
}
$cid_id = isset($_REQUEST['cid_id']) ? $_REQUEST['cid_id'] : false;
$description = isset($_REQUEST['description']) ? $_REQUEST['description'] : '';
$cid_name = isset($_REQUEST['cid_name']) ? $_REQUEST['cid_name'] : '';
$cid_num = isset($_REQUEST['cid_num']) ? $_REQUEST['cid_num'] : '';
$dest = isset($_REQUEST['dest']) ? $_REQUEST['dest'] : '';
if (isset($_REQUEST['goto0']) && $_REQUEST['goto0']) {
$dest = $_REQUEST[$_REQUEST['goto0'] . '0'];
}
switch ($action) {
case 'add':
setcid_add($description, $cid_name, $cid_num, $dest);
needreload();
redirect_standard();
break;
case 'edit':
setcid_edit($cid_id, $description, $cid_name, $cid_num, $dest);
needreload();
redirect_standard('extdisplay');
break;