本文整理匯總了PHP中CFunctions::countList方法的典型用法代碼示例。如果您正苦於以下問題:PHP CFunctions::countList方法的具體用法?PHP CFunctions::countList怎麽用?PHP CFunctions::countList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CFunctions
的用法示例。
在下文中一共展示了CFunctions::countList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: CSmartyDP
$where["actif"] = "= '1'";
}
$where["group_id"] = "= '{$group->_id}'";
$order = null;
if ($order_col == "text") {
$order = "text {$order_way}";
}
if ($order_col == "type") {
$order = "type {$order_way}, text ASC";
}
if ($filter) {
$functions = $function->seek($filter, $where, "{$page}, {$step}", true, null, $order);
$total_functions = $function->_totalSeek;
} else {
$functions = $function->loadList($where, $order, "{$page}, {$step}");
$total_functions = $function->countList($where);
}
foreach ($functions as $_function) {
$_function->countBackRefs("users");
$_function->countBackRefs("secondary_functions");
}
$function_id = CValue::getOrSession("function_id");
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("inactif", $inactif);
$smarty->assign("functions", $functions);
$smarty->assign("total_functions", $total_functions);
$smarty->assign("page", $page);
$smarty->assign("function_id", $function_id);
$smarty->assign("type", $type);
$smarty->assign("order_way", $order_way);