private function __argumentDecode(&$sArg)
    {
        if($sArg == '')
        {
            return '';
        }

        // Arguments are url encoded when uploading files
        $sType = 'multipart/form-data';
        $iLen = strlen($sType);
        $sContentType = '';
        if(key_exists('CONTENT_TYPE', $_SERVER))
        {
            $sContentType = substr($_SERVER['CONTENT_TYPE'], 0, $iLen);
        }
        elseif(key_exists('HTTP_CONTENT_TYPE', $_SERVER))
        {
            $sContentType = substr($_SERVER['HTTP_CONTENT_TYPE'], 0, $iLen);
        }
        if($sContentType == $sType)
        {
            $sArg = urldecode($sArg);
        }

        $data = json_decode($sArg, true);

        if($data !== null && $sArg != $data)
        {
            $sArg = $data;
        }
        else
        {
            $sArg = $this->__convertValue($sArg);
        }
    }
private function __argumentDecode(&$sArg)
    {
        if($sArg == '')
        {
            return '';
        }

        // Arguments are url encoded when uploading files
        $sType = 'multipart/form-data';
        $iLen = strlen($sType);
        $sContentType = '';
        if(key_exists('CONTENT_TYPE', $_SERVER))
        {
            $sContentType = substr($_SERVER['CONTENT_TYPE'], 0, $iLen);
        }
        elseif(key_exists('HTTP_CONTENT_TYPE', $_SERVER))
        {
            $sContentType = substr($_SERVER['HTTP_CONTENT_TYPE'], 0, $iLen);
        }
        if($sContentType == $sType)
        {
            $sArg = urldecode($sArg);
        }

        $data = json_decode($sArg, true);

        if($data !== null && $sArg != $data)
        {
            $sArg = $data;
        }
        else
        {
            $sArg = $this->__convertValue($sArg);
        }
    }
private function __argumentDecode ( & $ sArg ) { if ( $ sArg == '' ) { return '' ; } // Arguments are url encoded when uploading files $ sType = 'multipart/form-data' ; $ iLen = strlen ( $ sType ) ; $ sContentType = '' ; if ( key_exists ( 'CONTENT_TYPE' , $ _SERVER ) ) { $ sContentType = substr ( $ _SERVER [ 'CONTENT_TYPE' ] , 0 , $ iLen ) ; } elseif ( key_exists ( 'HTTP_CONTENT_TYPE' , $ _SERVER ) ) { $ sContentType = substr ( $ _SERVER [ 'HTTP_CONTENT_TYPE' ] , 0 , $ iLen ) ; } if ( $ sContentType == $ sType ) { $ sArg = urldecode ( $ sArg ) ; } $ data = json_decode ( $ sArg , true ) ; if ( $ data !== null && $ sArg != $ data ) { $ sArg = $ data ; } else { $ sArg = $ this -> __convertValue ( $ sArg ) ; } }
Decode and convert an Jaxon request argument from JSON

@param string        $sArg                The Jaxon request argument

@return mixed
Decode and convert an Jaxon request argument from JSON