本文整理汇总了PHP中xajaxResponse::removeScript方法的典型用法代码示例。如果您正苦于以下问题:PHP xajaxResponse::removeScript方法的具体用法?PHP xajaxResponse::removeScript怎么用?PHP xajaxResponse::removeScript使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类xajaxResponse
的用法示例。
在下文中一共展示了xajaxResponse::removeScript方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: plugin
function plugin($template, $customer)
{
global $documents_dirs;
$result = '';
// xajax response object, can be used in the plugin
$JSResponse = new xajaxResponse();
foreach ($documents_dirs as $doc) {
if (file_exists($doc . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . $template)) {
$doc_dir = $doc;
continue;
}
}
// read template information
if (file_exists($file = $doc_dir . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . $template . DIRECTORY_SEPARATOR . 'info.php')) {
include $file;
}
// call plugin
if (!empty($engine['plugin'])) {
if (file_exists($file = $doc_dir . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . $engine['name'] . DIRECTORY_SEPARATOR . $engine['plugin'] . '.php')) {
include $file;
}
if (file_exists($doc_dir . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR . $engine['name'] . DIRECTORY_SEPARATOR . $engine['plugin'] . '.js')) {
$JSResponse->removeScript($_SERVER['REQUEST_URI'] . '&template=' . $template);
$JSResponse->includeScript($_SERVER['REQUEST_URI'] . '&template=' . $template);
}
}
$JSResponse->assign('plugin', 'innerHTML', $result);
$JSResponse->assign('title', 'value', isset($engine['form_title']) ? $engine['form_title'] : $engine['title']);
return $JSResponse;
}