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