本文整理汇总了PHP中Translator::searchModules方法的典型用法代码示例。如果您正苦于以下问题:PHP Translator::searchModules方法的具体用法?PHP Translator::searchModules怎么用?PHP Translator::searchModules使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Translator
的用法示例。
在下文中一共展示了Translator::searchModules方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$toolbar->icon_list['save']['params'] = 'onclick="javascript:document.translator.submit()"';
$include_template = 'template_install_step2.php';
//save post data
$_SESSION['release_options']['title'] = $_POST['title'];
$_SESSION['release_options']['source_lang'] = $_POST['source_lang'];
$_SESSION['release_options']['destination_lang'] = $_POST['destination_lang'];
$_SESSION['release_options']['translated_only'] = $_POST['translated_only'];
$_SESSION['release_options']['description'] = $_POST['description'];
$_SESSION['translation_modules'] = array();
if ($_POST['id'] != 'current_installation') {
$translator->extractRelease($_POST['id']);
$temproot = $translator->getTempRoot();
} else {
$temproot = $translator->getTempRoot(true);
}
$translator->searchModules($temproot, $_POST['source_lang']);
break;
case 'p_install':
$translator->addRelease($_POST);
if ($_POST['id'] != 'current_installation') {
$translator->delete_directory(INSTALL_TEMP_DIR . session_id());
}
header('Location:index.php?cat=translator&module=main');
exit;
case 'mod':
$toolbar->icon_list['cancel']['params'] = 'onclick="location.href = \'' . html_href_link(FILENAME_DEFAULT, gen_get_all_get_params(array('action')) . 'action=releases', 'SSL') . '\'"';
$toolbar->icon_list['save']['show'] = true;
$toolbar->icon_list['save']['params'] = 'onclick="javascript:document.translator.submit()"';
$toolbar->icon_list['delete']['params'] = 'onclick="document.translator.action.value=\'p_delete\'; document.translator.submit()"';
$toolbar->icon_list['delete']['show'] = true;
$include_template = 'template_mod.php';