26 $oModule =
oxNew(
'oxModule' );
28 if ( $sModuleId && $oModule->load( $sModuleId ) ) {
32 $this->_aViewData[
"var_constraints"] = $aDbVariables[
'constraints'];
33 $this->_aViewData[
"var_grouping"] = $aDbVariables[
'grouping'];
35 foreach ($this->_aConfParams as $sType => $sParam) {
36 $this->_aViewData[$sParam] = $aDbVariables[
'vars'][$sType];
37 $iCount += count($aDbVariables[
'vars'][$sType]);
47 $this->_aViewData[
"oModule"] = $oModule;
49 return 'module_config.tpl';
84 $aVarConstraints = array();
89 if ( is_array($aModuleSettings) ) {
91 foreach ( $aModuleSettings as $aValue ) {
92 $sName = $aValue[
"name"];
93 $sType = $aValue[
"type"];
95 if (is_null($oConfig->getConfigParam($sName)) ) {
96 switch ($aValue[
"type"]) {
104 $sValue = filter_var($aValue[
"value"], FILTER_VALIDATE_BOOLEAN);
107 $sValue = $aValue[
"value"];
110 $sValue =
getStr()->htmlentities( $sValue );
112 $sValue = $aDbVariables[
'vars'][$sType][$sName];
115 $sGroup = $aValue[
"group"];
118 if ( $aValue[
"constraints"] ) {
119 $sConstraints = $aValue[
"constraints"];
120 } elseif ( $aValue[
"constrains"] ) {
121 $sConstraints = $aValue[
"constrains"];
124 $aConfVars[$sType][$sName] = $sValue;
125 $aVarConstraints[$sName] = $this->
_parseConstraint( $sType, $sConstraints );
127 if (!isset($aGrouping[$sGroup])) {
128 $aGrouping[$sGroup] = array($sName=>$sType);
130 $aGrouping[$sGroup][$sName] = $sType;
137 'vars' => $aConfVars,
138 'constraints' => $aVarConstraints,
139 'grouping' => $aGrouping,
159 foreach ($this->_aConfParams as $sType => $sParam) {
161 if (is_array($aConfVars)) {
162 foreach ( $aConfVars as $sName => $sValue ) {