本文整理汇总了PHP中SearchEngine::ReturnRecordset方法的典型用法代码示例。如果您正苦于以下问题:PHP SearchEngine::ReturnRecordset方法的具体用法?PHP SearchEngine::ReturnRecordset怎么用?PHP SearchEngine::ReturnRecordset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SearchEngine
的用法示例。
在下文中一共展示了SearchEngine::ReturnRecordset方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SearchEngine
$pg = 1;
}
$engine = new SearchEngine($i);
if (!empty($_GET['count'])) {
if (preg_match("/^\\d+\$/", $_GET['count'])) {
$engine->criteria->resultsperpage = $_GET['count'];
} elseif ($_GET['count'] == -1) {
$engine->criteria->resultsperpage = 999999999;
}
if ($hardlimit) {
$engine->criteria->resultsperpage = min($engine->criteria->resultsperpage, $hardlimit);
}
}
//return a recordset
//if want en then we HAVE to use the non cached version!
$recordSet = $engine->ReturnRecordset($pg, isset($_GET['en']));
} elseif (!empty($_GET['en']) || !empty($_GET['ppos'])) {
if (!empty($_GET['ftf'])) {
$mod_sql .= " and ftf = 1";
}
$recordSet =& $db->Execute("select gridimage_id,title,title2,grid_reference,gi.realname as credit_realname,if(gi.realname!='',gi.realname,user.realname) as realname,imageclass,nateastings,natnorthings,if(use6fig=1,6,natgrlen) as natgrlen,gi.user_id {$sql_from} \r\n\tfrom user \r\n\tinner join gridimage gi using(user_id) \r\n\tinner join gridsquare using(gridsquare_id) \r\n\twhere {$mod_sql} {$sql_crit}");
} else {
if (!empty($_GET['supp'])) {
$mod_sql = 1;
//no point checking what will always be 1 ;-)
}
if (!empty($_GET['ftf'])) {
$mod_sql .= " and ftf = 1";
}
$recordSet =& $db->Execute("select gridimage_id,title,title2,grid_reference,credit_realname,realname,imageclass,user_id {$sql_from} \r\n\tfrom gridimage_search gi \r\n\twhere {$mod_sql} {$sql_crit}");
}