8 define(
'CH_SYS_PRE_VALUES_TABLE',
'sys_pre_values');
25 $sqlFields .=
"`$sValue`, ";
26 $sqlFields = trim($sqlFields,
', ');
30 ORDER BY `Order` ASC";
31 return $GLOBALS[
'MySQL']->getAllWithKey($sqlQuery,
'Value', [$sKey]);
42 $GLOBALS[
'MySQL']->cleanCache(
'sys_prevalues_keys');
44 $aPreValues = array ();
47 foreach ($aKeys
as $aKey) {
50 $aPreValues[$sKey] = array ();
53 foreach ($aRows
as $aRow) {
55 $aPreValues[$sKey][$aRow[
'Value']] = array ();
57 foreach ($aRow
as $sValKey => $sValue) {
58 if ($sValKey ==
'Key' or $sValKey ==
'Value' or $sValKey ==
'Order')
64 $aPreValues[$sKey][$aRow[
'Value']][$sValKey] = $sValue;
72 $oCache->setData (
$GLOBALS[
'MySQL']->genDbCacheKey(
'sys_pre_values'), $aPreValues);
74 $GLOBALS[
'aPreValues'] = $aPreValues;