/** * @param string $sName * @return string */ public function GetParamTagValueByName($sName) { $oParam =& $this->getParamNodeByName($sName); return null !== $oParam ? api_Utils::DecodeSpecialXmlChars($oParam->Value) : ''; }
/** * @param string $sKey * @param mixed $mValue * * @return void */ protected function parseSetConf($sKey, $mValue) { $sKey = strtolower($sKey); if (isset($this->aLowerMap[$sKey])) { $aTypeArray = $this->aLowerMap[$sKey]; switch ($aTypeArray[1]) { default: $mValue = null; break; case 'string': $mValue = trim(api_Utils::DecodeSpecialXmlChars((string) $mValue)); break; case 'int': $mValue = (int) $mValue; break; case 'bool': $mValue = 'on' === strtolower($mValue) || '1' === (string) $mValue; break; case 'spec': $mValue = $this->specConver($sKey, $mValue); break; } if (null !== $mValue) { $this->aContainer[$sKey] = $mValue; } } }