本文整理汇总了PHP中Moxiecode_JSON::encodeString方法的典型用法代码示例。如果您正苦于以下问题:PHP Moxiecode_JSON::encodeString方法的具体用法?PHP Moxiecode_JSON::encodeString怎么用?PHP Moxiecode_JSON::encodeString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Moxiecode_JSON
的用法示例。
在下文中一共展示了Moxiecode_JSON::encodeString方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
// Include all plugins
$pluginPaths = $man->getPluginPaths();
foreach ($pluginPaths as $path) {
require_once "../" . $path;
}
// Dispatch auth event to make authenticators override config options
$man->isAuthenticated();
$langPack =& $man->getLangPack();
$groups =& $langPack->getGroups();
// TinyMCE specific format
if ($format == "tinymce") {
echo "tinyMCE.addToLang('',{\n";
$group = $groups['tinymce'];
$keys = array_keys($group);
for ($i = 0; $i < count($keys); $i++) {
echo $prefix . $keys[$i] . ":" . $json->encodeString($group[$keys[$i]]);
if ($i != count($keys) - 1) {
echo ",";
}
echo "\n";
}
echo "});";
} else {
if ($format == "tinymce_3_x") {
echo "tinyMCE.addI18n('" . $langPack->getLanguage() . "',{\n";
$group = $groups['tinymce'];
$keys = array_keys($group);
for ($i = 0; $i < count($keys); $i++) {
echo $prefix . $keys[$i] . ":" . $json->encodeString($group[$keys[$i]]);
if ($i != count($keys) - 1) {
echo ",";