private function getShownExtension()
    {
        if($this->hasRequestParameter('shownExtension')){
            $shownExtension = $this->getRequestParameter('shownExtension');
            if(strlen(trim($shownExtension)) > 0){
                $extension = $this->getExtension($shownExtension);
                return $extension->getName();
            }
        }
        return null;
    }
private function getShownExtension()
    {
        if($this->hasRequestParameter('shownExtension')){
            $shownExtension = $this->getRequestParameter('shownExtension');
            if(strlen(trim($shownExtension)) > 0){
                $extension = $this->getExtension($shownExtension);
                return $extension->getName();
            }
        }
        return null;
    }
private function getShownExtension ( ) { if ( $ this -> hasRequestParameter ( 'shownExtension' ) ) { $ shownExtension = $ this -> getRequestParameter ( 'shownExtension' ) ; if ( strlen ( trim ( $ shownExtension ) ) > 0 ) { $ extension = $ this -> getExtension ( $ shownExtension ) ; return $ extension -> getName ( ) ; } } return null ; }
Get and validate the extension name of the parameter 'shownExtension'
@return string the validated extension name
@throws Exception if the parameter contains an unknown extension
Get and validate the extension name of the parameter shownExtension