20 $this->_aConfParams[
'password'] =
'confpassword';
36 $oModule =
oxNew(
'oxModule');
38 if ($sModuleId && $oModule->load($sModuleId)) {
42 $this->_aViewData[
"var_constraints"] = $aDbVariables[
'constraints'];
43 $this->_aViewData[
"var_grouping"] = $aDbVariables[
'grouping'];
45 foreach ($this->_aConfParams as $sType => $sParam) {
46 $this->_aViewData[$sParam] = $aDbVariables[
'vars'][$sType];
47 $iCount += count($aDbVariables[
'vars'][$sType]);
57 $this->_aViewData[
"oModule"] = $oModule;
59 return 'module_config.tpl';
93 "password" => array(),
95 $aVarConstraints = array();
100 if (is_array($aModuleSettings)) {
102 foreach ($aModuleSettings as $aValue) {
103 $sName = $aValue[
"name"];
104 $sType = $aValue[
"type"];
106 if (is_null($oConfig->getConfigParam($sName))) {
107 switch ($aValue[
"type"]) {
115 $sValue = filter_var($aValue[
"value"], FILTER_VALIDATE_BOOLEAN);
118 $sValue = $aValue[
"value"];
121 $sValue =
getStr()->htmlentities($sValue);
124 $sValue = $aDbVariables[
'vars'][$sDbType][$sName];
127 $sGroup = $aValue[
"group"];
130 if ($aValue[
"constraints"]) {
131 $sConstraints = $aValue[
"constraints"];
132 } elseif ($aValue[
"constrains"]) {
133 $sConstraints = $aValue[
"constrains"];
136 $aConfVars[$sType][$sName] = $sValue;
139 if (!isset($aGrouping[$sGroup])) {
140 $aGrouping[$sGroup] = array($sName => $sType);
142 $aGrouping[$sGroup][$sName] = $sType;
149 'vars' => $aConfVars,
150 'constraints' => $aVarConstraints,
151 'grouping' => $aGrouping,
166 $sShopId = $oConfig->getShopId();
170 foreach ($this->_aConfParams as $sType => $sParam) {
171 $aConfVars = $oConfig->getRequestParameter($sParam);
172 if (is_array($aConfVars)) {
173 foreach ($aConfVars as $sName => $sValue) {
175 $oConfig->saveShopConfVar(
197 if ($sType ===
'password') {