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


PHP FreePBX::Ttsengines方法代碼示例

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


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

示例1: ttsengines_delete_engine

    ttsengines_delete_engine($_REQUEST['engineid']);
} else {
    if ($_POST['edit']) {
        ttsengines_update_engine($_POST['engineid'], $_POST['enginename'], $_POST['enginepath']);
    } else {
        if ($_POST['addengine']) {
            ttsengines_add_engine($_POST['enginename'], $_POST['enginepath']);
        }
    }
}
$engines = ttsengines_get_all_engines();
$info = show_help(_('On this page you can manage text to speech engines on your system. When you add an engine you give it a name, and the full path to the engine on your system. After doing this the engine will be available on the text to speech page.'));
$heading = _('Text to Speech Engines');
$delurl = '';
if (isset($edit)) {
    $data = \FreePBX::Ttsengines()->getEngine($edit);
    $enginename = isset($data['name']) ? $data['name'] : '';
    $enginepath = isset($data['path']) ? $data['path'] : '';
    $delurl = '?display=ttsengines&delete=true&engineid=' . $edit . '&edit=' . $edit;
}
?>
<div class="container-fluid">
	<h1><?php 
echo $heading;
?>
</h1>
		<?php 
echo $info;
?>
	<div class = "display full-border">
		<div class="row">
開發者ID:ringfreejohn,項目名稱:pbxframework,代碼行數:31,代碼來源:page.ttsengines.php


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