本文整理汇总了PHP中RunnerPage::countDetailsRecsNoSubQ方法的典型用法代码示例。如果您正苦于以下问题:PHP RunnerPage::countDetailsRecsNoSubQ方法的具体用法?PHP RunnerPage::countDetailsRecsNoSubQ怎么用?PHP RunnerPage::countDetailsRecsNoSubQ使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RunnerPage
的用法示例。
在下文中一共展示了RunnerPage::countDetailsRecsNoSubQ方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: my_json_encode
if (!checkTableName($dSTable)) {
$respObj = array("success" => false, "error" => 'Wrong detail short table name');
echo my_json_encode($respObj);
return;
}
include "include/" . $dSTable . "_variables.php";
if (!@$_SESSION["UserID"] || !CheckSecurity(@$_SESSION["_" . $strTableName . "_OwnerID"], "Search")) {
$respObj = array("success" => false, "error" => '');
echo my_json_encode($respObj);
return;
}
include 'include/xtempl.php';
include 'classes/runnerpage.php';
$mKeys = json_decode(postvalue("mKeys"));
$mTable = postvalue("mTable");
$dTable = postvalue("dTable");
$pageType = postvalue("pageType");
//array of params for classes
$params = array("pageType" => $pageType);
$params['xt'] =& $xt;
$params["tName"] = $mTable;
$params["needSearchClauseObj"] = false;
$pageObject = new RunnerPage($params);
for ($dInd = 0; $dInd < count($pageObject->allDetailsTablesArr); $dInd++) {
if ($pageObject->allDetailsTablesArr[$dInd]['dDataSourceTable'] == $dTable) {
break;
}
}
$output = $pageObject->countDetailsRecsNoSubQ($dInd, $mKeys);
$respObj = array('success' => true, 'recsCount' => $output);
echo my_json_encode($respObj);