本文整理汇总了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;