本文整理汇总了PHP中FreePBX::Paging方法的典型用法代码示例。如果您正苦于以下问题:PHP FreePBX::Paging方法的具体用法?PHP FreePBX::Paging怎么用?PHP FreePBX::Paging使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FreePBX
的用法示例。
在下文中一共展示了FreePBX::Paging方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: paging_get_devs
$devices = paging_get_devs($extdisplay);
extract($thisGRP);
$pagenbr = $extdisplay;
$pagegrp = $extdisplay;
$delURL = '?display=paging&action=delete&extdisplay=' . urlencode($extdisplay);
} else {
$force_page = "0";
$devices = array();
$ext = '';
$pagenbr = '';
$pagegrp = '';
$delURL = '';
$duplex = '0';
$description = '';
}
$default_group = \FreePBX::Paging()->getDefaultGroup();
$device_list = array();
$cdl = core_devices_list();
$cdl = is_array($cdl) ? $cdl : array();
$devs = core_devices_list();
$devs = is_array($devs) ? $devs : array();
foreach ($devs as $d) {
$device_list[$d[0]] = $d[0] . ' - ' . $d[1];
}
$devhtml = '';
$selected_dev = $notselected_dev = '';
$pl_options = '';
foreach ($device_list as $ext => $name) {
$selected = in_array((string) $ext, $devices, true) ? 'SELECTED' : '';
$pl_options .= '<option value = ' . $ext . ' ' . $selected . '>' . $name . '</option>';
}
示例2: paging_get_default
function paging_get_default()
{
return \FreePBX::Paging()->getDefaultGroup();
}
示例3: elseif
//otherwise, get the ID of the system recording
} elseif (isset($m[0], $m[1])) {
foreach (recordings_list() as $raw) {
if ($raw['filename'] == $m[1]) {
$announce = $raw['id'];
break;
}
}
}
}
}
$aopts = '';
foreach ($rec_list as $key => $value) {
$aopts .= '<option value=' . $key . ' ' . ($key == $announce ? 'SELECTED' : '') . '>' . $value . '</option>';
}
$drop_silence = \FreePBX::Paging()->getDropSilence();
?>
<h3><?php
echo _('Paging and Intercom settings');
?>
</h3>
<form class="fpbx-submit" name="frm_extensions" action="" method="post" data-fpbx-delete="" role="form">
<input type="hidden" name="action" value="save_settings">
<input type="hidden" name="display" value="paging">
<!--Auto-answer defaults-->
<div class="element-container">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="form-group">