本文整理匯總了PHP中DBObjectSet::GetSelectedClasses方法的典型用法代碼示例。如果您正苦於以下問題:PHP DBObjectSet::GetSelectedClasses方法的具體用法?PHP DBObjectSet::GetSelectedClasses怎麽用?PHP DBObjectSet::GetSelectedClasses使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DBObjectSet
的用法示例。
在下文中一共展示了DBObjectSet::GetSelectedClasses方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: DBObjectSet
} else {
$sSortCol = $sAttCode;
}
$aOrderBy[$sSortCol] = utils::ReadParam('sort_order', 'asc') == 'asc';
}
}
$iSortIndex++;
} else {
$aColumns[$sAlias][$sAttCode]['checked'] = false;
}
}
}
// Load only the requested columns
$oSet = new DBObjectSet($oFilter, $aOrderBy, $aExtraParams, null, $iEnd - $iStart, $iStart);
$oSet->OptimizeColumnLoad($aColumnsLoad);
$oDataTable = new DataTable($iListId, $oSet, $oSet->GetSelectedClasses());
if ($operation == 'datatable') {
// Redraw the whole table
$sHtml = $oDataTable->UpdatePager($oPage, $iEnd - $iStart, $iStart);
// Set the default page size
$sHtml .= $oDataTable->GetHTMLTable($oPage, $aColumns, $sSelectMode, $iEnd - $iStart, $bDisplayKey, $aExtraParams);
} else {
// redraw just the needed rows
$sHtml = $oDataTable->GetAsHTMLTableRows($oPage, $iEnd - $iStart, $aColumns, $sSelectMode, $bDisplayKey, $aExtraParams);
}
$oPage->add($sHtml);
break;
case 'datatable_save_settings':
$oPage->SetContentType('text/plain');
$iPageSize = utils::ReadParam('page_size', 10);
$sTableId = utils::ReadParam('table_id', null, false, 'raw_data');