本文整理汇总了PHP中exponent_lang_loadKey函数的典型用法代码示例。如果您正苦于以下问题:PHP exponent_lang_loadKey函数的具体用法?PHP exponent_lang_loadKey怎么用?PHP exponent_lang_loadKey使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了exponent_lang_loadKey函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: description
function description()
{
return exponent_lang_loadKey('modules/NavigationModule/class.php', 'module_description');
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:4,代码来源:NavigationModule.php
示例2: spiderContent
function spiderContent($item = null)
{
global $db;
if (!defined('SYS_SEARCH')) {
require_once BASE . 'subsystems/search.php';
}
$search = null;
$search->category = exponent_lang_loadKey('modules/WeblogModule/class.php', 'search_category');
$search->view_link = "";
// FIXME : need a view action
$search->ref_module = 'WeblogModule';
$search->ref_type = 'weblog_post';
$view_link = array('module' => 'WeblogModule', 'action' => 'view', 'id' => 0);
if ($item && $item->is_draft == 0) {
$db->delete('search', "ref_module='WeblogModule' AND ref_type='weblog_post' AND original_id=" . $item->id);
$search->original_id = $item->id;
$search->body = " " . exponent_search_removeHTML($item->body) . " ";
$search->title = " " . $item->title . " ";
$search->location_data = $item->location_data;
$view_link['id'] = $item->id;
$search->view_link = exponent_core_makeLink($view_link, true);
$db->insertObject($search, 'search');
} else {
$db->delete('search', "ref_module='WeblogModule' AND ref_type='weblog_post'");
foreach ($db->selectObjects('weblog_post', 'is_private=0 AND is_draft=0') as $item) {
$search->original_id = $item->id;
$search->body = ' ' . exponent_search_removeHTML($item->body) . ' ';
$search->title = ' ' . $item->title . ' ';
$search->location_data = $item->location_data;
$view_link['id'] = $item->id;
$search->view_link = exponent_core_makeLink($view_link, true);
$db->insertObject($search, 'search');
}
}
return true;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:36,代码来源:WeblogModule.php
示例3: spiderContent
function spiderContent($item = null)
{
global $db;
if (!defined('SYS_SEARCH')) {
include_once BASE . 'subsystems/search.php';
}
$search = null;
$search->title = '';
$search->view_link = '';
$search->category = exponent_lang_loadKey('modules/TextModule/class.php', 'search_post_type');
$search->ref_module = 'TextModule';
$search->ref_type = 'textitem';
if ($item) {
$db->delete('search', "ref_module='TextModule' AND ref_type='textitem' AND original_id=" . $item->id);
$search->original_id = $item->id;
$search->body = ' ' . exponent_search_removeHTML($item->text) . ' ';
$search->location_data = $item->location_data;
$db->insertObject($search, 'search');
} else {
$db->delete('search', "ref_module='TextModule' AND ref_type='textitem'");
foreach ($db->selectObjects('textitem') as $item) {
$search->original_id = $item->id;
$search->body = ' ' . exponent_search_removeHTML($item->text) . ' ';
$search->location_data = $item->location_data;
$db->insertObject($search, 'search');
}
}
return true;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:29,代码来源:TextModule.php
示例4: exit
##################################################
//GREP:VIEWIFY
if (!defined("EXPONENT")) {
exit("");
}
// First, check our module config
$config = $db->selectObject('searchmodule_config', "location_data='" . serialize($loc) . "'");
if ($config == null) {
$config->is_categorized = 0;
}
if (!defined("SYS_SEARCH")) {
include_once BASE . "subsystems/search.php";
}
$search_string = trim(strtolower(strip_tags($_GET['search_string'])));
if ($search_string == "") {
echo exponent_lang_loadKey('modules/searchmodule/actions/search.php', 'need_term');
return;
}
$term_status = exponent_search_cleanSearchQuery(array_map("addslashes", array_map("trim", split(" ", $search_string))));
$terms = $term_status['valid'];
$results = array();
foreach ($db->selectObjects("search", exponent_search_whereClause(array("title", "body"), $terms, SEARCH_TYPE_ANY)) as $r) {
$result = null;
$rloc = unserialize($r->location_data);
$sectionref = $db->selectObject("sectionref", "module='" . $rloc->mod . "' AND source='" . $rloc->src . "'");
$section = $db->selectObject("section", "id=" . $sectionref->section);
$canview = navigationmodule::canView($section);
if ($canview && $r->view_perm != '') {
// No point in checking the perm stuff if they cant even see the section
$canview = false;
// They need to have specific perms on the module.
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:search.php
注:本文中的exponent_lang_loadKey函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论