private function getExtension($extensionId)
    {
        try {
            return $this->getServiceLocator()->get(common_ext_ExtensionsManager::SERVICE_ID)->getExtensionById($extensionId);
        } catch(common_ext_ExtensionException $cee){
            throw new Exception(__('Wrong parameter shownExtension'), $cee);
        }
    }
private function getExtension($extensionId)
    {
        try {
            return $this->getServiceLocator()->get(common_ext_ExtensionsManager::SERVICE_ID)->getExtensionById($extensionId);
        } catch(common_ext_ExtensionException $cee){
            throw new Exception(__('Wrong parameter shownExtension'), $cee);
        }
    }
private function getExtension ( $ extensionId ) { try { return $ this -> getServiceLocator ( ) -> get ( common_ext_ExtensionsManager :: SERVICE_ID ) -> getExtensionById ( $ extensionId ) ; } catch ( common_ext_ExtensionException $ cee ) { throw new Exception ( __ ( 'Wrong parameter shownExtension' ) , $ cee ) ; } }
Get an extension by it's id
@param string $extensionId the extension name/id
@return common_ext_Extension the extension
@throws Exception if the parameter contains an unknown extension
Get an extension by it s id