本文整理匯總了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">