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


PHP featurecode::setHelpText方法代碼示例

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


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

示例1: featurecode

    _("Pickup ParkedCall Any");
    _("Park Prefix");
    _("Pickup ParkedCall Prefix");
    _("Defines the Feature Code to use for Direct Call Pickup");
    _('Parks to your Assigned Lot if using Park Pro. If using standard parking this parks to the default lot');
}
$fcc = new featurecode('parking', 'parkedcall');
$fcc->setDescription('Pickup ParkedCall Prefix');
$fcc->setHelpText('Defines the Feature Code to use for Direct Call Pickup');
$fcc->setDefault('*85');
$fcc->setProvideDest();
$fcc->update();
unset($fcc);
$fcc = new featurecode('parking', 'parkto');
$fcc->setDescription(_('Park to your Assigned Lot'));
$fcc->setHelpText('Parks to your Assigned Lot if using Park Pro. If using standard parking this parks to the default lot');
$fcc->setDefault('*88');
$fcc->setProvideDest();
$fcc->update();
unset($fcc);
$sql['parkplus'] = "\n\tCREATE TABLE IF NOT EXISTS parkplus (\n\t\tid BIGINT(20) NOT NULL AUTO_INCREMENT,\n\t\tdefaultlot VARCHAR(10) NOT NULL DEFAULT 'no',\n\t\ttype VARCHAR(10) NOT NULL DEFAULT 'public',\n\t\tname VARCHAR(40) NOT NULL DEFAULT '',\n\t\tparkext VARCHAR(40) NOT NULL DEFAULT '',\n\t\tparkpos VARCHAR(40) NOT NULL DEFAULT '',\n\t\tnumslots INTEGER NOT NULL DEFAULT 4,\n\t\tparkingtime INTEGER NOT NULL DEFAULT 45,\n\t\tparkedmusicclass VARCHAR(100) DEFAULT 'default',\n\t\tgeneratefc VARCHAR(10) NOT NULL DEFAULT 'yes',\n\t\tgeneratehints VARCHAR(10) NOT NULL DEFAULT 'yes',\n\t\tfindslot VARCHAR(10) NOT NULL DEFAULT 'first',\n\t\tparkedplay VARCHAR(10) NOT NULL DEFAULT 'both',\n\t\tparkedcalltransfers VARCHAR(10) NOT NULL DEFAULT 'caller',\n\t\tparkedcallreparking VARCHAR(10) NOT NULL DEFAULT 'caller',\n\t\talertinfo VARCHAR(254) NOT NULL DEFAULT '',\n\t\tcidpp VARCHAR(100) NOT NULL DEFAULT '',\n\t\tautocidpp VARCHAR(10) NOT NULL DEFAULT 'none',\n\t\tannouncement_id INT DEFAULT NULL,\n\t\tcomebacktoorigin VARCHAR(10) NOT NULL DEFAULT 'yes',\n\t\tdest VARCHAR(100) NOT NULL DEFAULT 'app-blackhole,hangup,1',\n\t\tPRIMARY KEY (id)\n\t)";
foreach ($sql as $t => $s) {
    out(sprintf(_("creating table %s if needed"), $t));
    $result = $db->query($s);
    if (DB::IsError($result)) {
        die_freepbx($result->getDebugInfo());
    }
}
$sql = "SELECT * FROM parkplus WHERE defaultlot = 'yes'";
$default_lot = sql($sql, "getAll", DB_FETCHMODE_ASSOC);
// There should never be more than a single default lot so just blow them
開發者ID:ringfreejohn,項目名稱:pbxframework,代碼行數:31,代碼來源:install.php

示例2: install

 public function install()
 {
     $fcc = new \featurecode('blacklist', 'blacklist_add');
     $fcc->setDescription('Blacklist a number');
     $fcc->setHelpText('Adds a number to the Blacklist Module.  All calls from that number to the system will receive a disconnect recording.  Manage these in the Blacklist module.');
     $fcc->setDefault('*30');
     $fcc->setProvideDest();
     $fcc->update();
     unset($fcc);
     $fcc = new \featurecode('blacklist', 'blacklist_remove');
     $fcc->setDescription('Remove a number from the blacklist');
     $fcc->setHelpText('Removes a number from the Blacklist Module');
     $fcc->setDefault('*31');
     $fcc->setProvideDest();
     $fcc->update();
     unset($fcc);
     $fcc = new featurecode('blacklist', 'blacklist_last');
     $fcc->setDescription('Blacklist the last caller');
     $fcc->setHelpText('Adds the last caller to the Blacklist Module.  All calls from that number to the system will receive a disconnect recording.');
     $fcc->setDefault('*32');
     $fcc->update();
     unset($fcc);
 }
開發者ID:ringfreejohn,項目名稱:pbxframework,代碼行數:23,代碼來源:Blacklist.class.php


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