source/Application/Controller/Admin/ShopConfiguration.php
public function _unserializeConfVar($sType, $sName, $sValue)
    {
        $oStr = getStr();
        $mData = null;

        switch ($sType) {
            case "bool":
                $mData = ($sValue == "true" || $sValue == "1");
                break;

            case "str":
            case "select":
            case "num":
            case "int":
                $mData = $oStr->htmlentities($sValue);
                if (in_array($sName, $this->_aParseFloat)) {
                    $mData = str_replace(',', '.', $mData);
                }
                break;

            case "arr":
                if (in_array($sName, $this->_aSkipMultiline)) {
                    $mData = unserialize($sValue);
                } else {
                    $mData = $oStr->htmlentities($this->_arrayToMultiline(unserialize($sValue)));
                }
                break;

            case "aarr":
                if (in_array($sName, $this->_aSkipMultiline)) {
                    $mData = unserialize($sValue);
                } else {
                    $mData = $oStr->htmlentities($this->_aarrayToMultiline(unserialize($sValue)));
                }
                break;
        }

        return $mData;
    }
public function _unserializeConfVar($sType, $sName, $sValue)
    {
        $oStr = getStr();
        $mData = null;

        switch ($sType) {
            case "bool":
                $mData = ($sValue == "true" || $sValue == "1");
                break;

            case "str":
            case "select":
            case "num":
            case "int":
                $mData = $oStr->htmlentities($sValue);
                if (in_array($sName, $this->_aParseFloat)) {
                    $mData = str_replace(',', '.', $mData);
                }
                break;

            case "arr":
                if (in_array($sName, $this->_aSkipMultiline)) {
                    $mData = unserialize($sValue);
                } else {
                    $mData = $oStr->htmlentities($this->_arrayToMultiline(unserialize($sValue)));
                }
                break;

            case "aarr":
                if (in_array($sName, $this->_aSkipMultiline)) {
                    $mData = unserialize($sValue);
                } else {
                    $mData = $oStr->htmlentities($this->_aarrayToMultiline(unserialize($sValue)));
                }
                break;
        }

        return $mData;
    }
public function _unserializeConfVar ( $ sType , $ sName , $ sValue ) { $ oStr = getStr ( ) ; $ mData = null ; switch ( $ sType ) { case "bool" : $ mData = ( $ sValue == "true" || $ sValue == "1" ) ; break ; case "str" : case "select" : case "num" : case "int" : $ mData = $ oStr -> htmlentities ( $ sValue ) ; if ( in_array ( $ sName , $ this -> _aParseFloat ) ) { $ mData = str_replace ( ',' , '.' , $ mData ) ; } break ; case "arr" : if ( in_array ( $ sName , $ this -> _aSkipMultiline ) ) { $ mData = unserialize ( $ sValue ) ; } else { $ mData = $ oStr -> htmlentities ( $ this -> _arrayToMultiline ( unserialize ( $ sValue ) ) ) ; } break ; case "aarr" : if ( in_array ( $ sName , $ this -> _aSkipMultiline ) ) { $ mData = unserialize ( $ sValue ) ; } else { $ mData = $ oStr -> htmlentities ( $ this -> _aarrayToMultiline ( unserialize ( $ sValue ) ) ) ; } break ; } return $ mData ; }
Unserialize config var depending on it's type

@param string $sType  var type
@param string $sName  var name
@param string $sValue var value

@return mixed
Unserialize config var depending on it s type