当前位置: 首页>>代码示例>>PHP>>正文


PHP text::jsValue方法代码示例

本文整理汇总了PHP中text::jsValue方法的典型用法代码示例。如果您正苦于以下问题:PHP text::jsValue方法的具体用法?PHP text::jsValue怎么用?PHP text::jsValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在text的用法示例。


在下文中一共展示了text::jsValue方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

    echo $this->opener['CKEditor']['funcNum'];
    ?>
;
<?php 
}
if (isset($this->opener['TinyMCE']) && $this->opener['TinyMCE']) {
    ?>
browser.opener.TinyMCE = true;
<?php 
}
?>
_.kuki.domain = "<?php 
echo text::jsValue($this->config['cookieDomain']);
?>
";
_.kuki.path = "<?php 
echo text::jsValue($this->config['cookiePath']);
?>
";
_.kuki.prefix = "<?php 
echo text::jsValue($this->config['cookiePrefix']);
?>
";
$(document).ready(function() {
    browser.resize();
    browser.init();
    $('#all').css('visibility', 'visible');
});
$(window).resize(browser.resize);
</script>
开发者ID:SallyU,项目名称:footprints,代码行数:30,代码来源:tpl__javascript.php

示例2: header

 *    @author Pavel Tzonkov <sunhater@sunhater.com>
 * @copyright 2010-2014 KCFinder Project
 *   @license http://opensource.org/licenses/GPL-3.0 GPLv3
 *   @license http://opensource.org/licenses/LGPL-3.0 LGPLv3
 *      @link http://kcfinder.sunhater.com
 */
namespace kcfinder;

require "core/autoload.php";
if (!isset($_GET['lng']) || $_GET['lng'] == 'en' || $_GET['lng'] != basename($_GET['lng']) || !is_file("lang/" . $_GET['lng'] . ".php")) {
    header("Content-Type: text/javascript");
    die;
}
$file = "lang/" . $_GET['lng'] . ".php";
$mtime = @filemtime($file);
if ($mtime) {
    httpCache::checkMTime($mtime, "Content-Type: text/javascript");
}
require $file;
header("Content-Type: text/javascript");
echo "_.labels={";
$i = 0;
foreach ($lang as $english => $native) {
    if (substr($english, 0, 1) != "_") {
        echo "'" . text::jsValue($english) . "':\"" . text::jsValue($native) . "\"";
        if (++$i < count($lang)) {
            echo ",";
        }
    }
}
echo "}";
开发者ID:christianallred,项目名称:fluent_univ,代码行数:31,代码来源:js_localize.php

示例3: callBack

 protected function callBack($url, $message = "")
 {
     $message = text::jsValue($message);
     if (get_class($this) == "kcfinder\\browser" && $this->action != "browser") {
         return;
     }
     if (isset($this->opener['name'])) {
         $method = "callBack_{$this->opener['name']}";
         if (method_exists($this, $method)) {
             $js = $this->{$method}($url, $message);
         }
     }
     if (!isset($js)) {
         $js = $this->callBack_default($url, $message);
     }
     header("Content-Type: text/html; charset={$this->charset}");
     echo "<html><body>{$js}</body></html>";
 }
开发者ID:mikegrahamjones,项目名称:kcfinder,代码行数:18,代码来源:uploader.php

示例4: input

 *   @license http://www.opensource.org/licenses/lgpl-2.1.php LGPLv2
 *      @link http://kcfinder.sunhater.com
 */
if (file_exists('core/autoload.php')) {
    require "core/autoload.php";
} else {
    require "./core/autoload.php";
}
if (function_exists('set_magic_quotes_runtime')) {
    @set_magic_quotes_runtime(false);
}
$input = new input();
if (!isset($input->get['lng']) || $input->get['lng'] == 'en') {
    die;
}
$file = "lang/" . $input->get['lng'] . ".php";
$files = glob("lang/*.php");
if (!in_array($file, $files)) {
    die;
}
$mtime = @filemtime($file);
if ($mtime) {
    httpCache::checkMTime($mtime);
}
require $file;
header("Content-Type: text/javascript; charset={$lang['_charset']}");
foreach ($lang as $english => $native) {
    if (substr($english, 0, 1) != "_") {
        echo "browser.labels['" . text::jsValue($english) . "']=\"" . text::jsValue($native) . "\";";
    }
}
开发者ID:Rotron,项目名称:hero,代码行数:31,代码来源:js_localize.php

示例5: callBack

    protected function callBack($url, $message = "")
    {
        $message = text::jsValue($message);
        $CKfuncNum = isset($this->opener['CKEditor']['funcNum']) ? $this->opener['CKEditor']['funcNum'] : 0;
        if (!$CKfuncNum) {
            $CKfuncNum = 0;
        }
        header("Content-Type: text/html; charset={$this->charset}");
        ?>
<html>
<body>
<script type='text/javascript'>
var kc_CKEditor = (window.parent && window.parent.CKEDITOR)
    ? window.parent.CKEDITOR.tools.callFunction
    : ((window.opener && window.opener.CKEDITOR)
        ? window.opener.CKEDITOR.tools.callFunction
        : false);
var kc_FCKeditor = (window.opener && window.opener.OnUploadCompleted)
    ? window.opener.OnUploadCompleted
    : ((window.parent && window.parent.OnUploadCompleted)
        ? window.parent.OnUploadCompleted
        : false);
var kc_Custom = (window.parent && window.parent.KCFinder)
    ? window.parent.KCFinder.callBack
    : ((window.opener && window.opener.KCFinder)
        ? window.opener.KCFinder.callBack
        : false);
if (kc_CKEditor)
    kc_CKEditor(<?php 
        echo $CKfuncNum;
        ?>
, '<?php 
        echo $url;
        ?>
', '<?php 
        echo $message;
        ?>
');
if (kc_FCKeditor)
    kc_FCKeditor(<?php 
        echo strlen($message) ? 1 : 0;
        ?>
, '<?php 
        echo $url;
        ?>
', '', '<?php 
        echo $message;
        ?>
');
if (kc_Custom) {
    if (<?php 
        echo strlen($message);
        ?>
) alert('<?php 
        echo $message;
        ?>
');
    kc_Custom('<?php 
        echo $url;
        ?>
');
}
if (!kc_CKEditor && !kc_FCKeditor && !kc_Custom)
    alert("<?php 
        echo $message;
        ?>
");
</script>
</body>
</html><?php 
    }
开发者ID:hilmysyarif,项目名称:e-learning-smp,代码行数:71,代码来源:uploader.php


注:本文中的text::jsValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。