本文整理匯總了PHP中CustomView::getModifiedCollectListQuery方法的典型用法代碼示例。如果您正苦於以下問題:PHP CustomView::getModifiedCollectListQuery方法的具體用法?PHP CustomView::getModifiedCollectListQuery怎麽用?PHP CustomView::getModifiedCollectListQuery使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CustomView
的用法示例。
在下文中一共展示了CustomView::getModifiedCollectListQuery方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getListQuery
if (method_exists($focus, "getListQuery")) {
//Retreive the list from Database
//<<<<<<<<<customview>>>>>>>>>
if (isset($where) && $where != '') {
$where = ' and ' . $where;
}
$listquery = $focus->getListQuery($where);
} else {
$listquery = getListQuery($currentModule);
if (!empty($where)) {
$listquery .= ' and ' . $where;
}
}
$list_query = $oCustomView->getModifiedCvListQuery($viewid, $listquery, $currentModule);
// echo $list_query;
$list_sum_query = $oCustomView->getModifiedCollectListQuery($viewid, $listquery, $currentModule, $customviewdtls, 2);
// echo $list_sum_query;
$sum_result = $adb->query($list_sum_query);
$allrecordtotal = $adb->query_result($sum_result, 0, $columnname . "_total");
if (empty($allrecordtotal)) {
$allrecordtotal = 0;
}
//limiting the query
$query_order_by = "";
if (isset($order_by) && $order_by != '') {
if ($order_by == 'smownerid') {
$query_order_by = 'user_name';
} else {
$tablename = getTableNameForField($currentModule, $order_by);
$tablename = $tablename != '' ? $tablename . "." : '';
$query_order_by = $tablename . $order_by;