public function tryDecodeData(&$decodedData)
    {
        $hasOutput = false;

        switch ($this->getEncoding()) {
            case self::ENCODING_URL_ENCODED_OCTETS:
                $decodedData = rawurldecode($this->getEncodedData());
                $hasOutput = true;
                break;
            case self::ENCODING_BASE64:
                $b64Decoded = base64_decode($this->getEncodedData(), true);

                if ($b64Decoded !== false) {
                    $decodedData = $b64Decoded;
                    $hasOutput = true;
                }
                break;
            default:
                // NOP
                break;
        }

        return $hasOutput;
    }
public function tryDecodeData(&$decodedData)
    {
        $hasOutput = false;

        switch ($this->getEncoding()) {
            case self::ENCODING_URL_ENCODED_OCTETS:
                $decodedData = rawurldecode($this->getEncodedData());
                $hasOutput = true;
                break;
            case self::ENCODING_BASE64:
                $b64Decoded = base64_decode($this->getEncodedData(), true);

                if ($b64Decoded !== false) {
                    $decodedData = $b64Decoded;
                    $hasOutput = true;
                }
                break;
            default:
                // NOP
                break;
        }

        return $hasOutput;
    }
public function tryDecodeData ( & $ decodedData ) { $ hasOutput = false ; switch ( $ this -> getEncoding ( ) ) { case self :: ENCODING_URL_ENCODED_OCTETS : $ decodedData = rawurldecode ( $ this -> getEncodedData ( ) ) ; $ hasOutput = true ; break ; case self :: ENCODING_BASE64 : $ b64Decoded = base64_decode ( $ this -> getEncodedData ( ) , true ) ; if ( $ b64Decoded !== false ) { $ decodedData = $ b64Decoded ; $ hasOutput = true ; } break ; default : // NOP break ; } return $ hasOutput ; }
Tries to decode the URI's data using the encoding scheme set.

@param null $decodedData Stores the decoded data

@return bool <code>true</code> if data was output,
else <code>false</code>
Tries to decode the URI s data using the encoding scheme set .