/**
  * Implementation of BsUniversalExportModule interface. Creates an overview
  * over the PdfExportModule
  * @return ViewExportModuleOverview
  */
 public function getOverview()
 {
     $oModuleOverviewView = new ViewExportModuleOverview();
     $oModuleOverviewView->setOption('module-title', wfMessage('bs-uemodulepdf-overview-title')->plain());
     $oModuleOverviewView->setOption('module-description', wfMessage('bs-uemodulepdf-overview-desc')->plain());
     $oModuleOverviewView->setOption('module-bodycontent', '');
     $oWebserviceStateView = new ViewBaseElement();
     $oWebserviceStateView->setTemplate('{LABEL}: <span style="font-weight: bold; color:{COLOR}">{STATE}</span>');
     $sWebServiceUrl = BsConfig::get('MW::UEModulePDF::PdfServiceURL');
     $sWebserviceState = wfMessage('bs-uemodulepdf-overview-webservice-state-not-ok')->plain();
     $sColor = 'red';
     if (BsConnectionHelper::testUrlForTimeout($sWebServiceUrl)) {
         $sColor = 'green';
         $sWebserviceState = wfMessage('bs-uemodulepdf-overview-webservice-state-ok')->plain();
         $oWebserviceUrlView = new ViewBaseElement();
         $oWebserviceUrlView->setTemplate('{LABEL}: <a href="{URL}" target="_blank">{URL}</a><br/>');
         $oWebserviceUrlView->addData(array('LABEL' => wfMessage('bs-uemodulepdf-overview-webservice-webadmin')->plain(), 'URL' => $sWebServiceUrl));
         $oModuleOverviewView->addItem($oWebserviceUrlView);
     }
     $oWebserviceStateView->addData(array('LABEL' => wfMessage('bs-uemodulepdf-overview-webservice-state')->plain(), 'COLOR' => $sColor, 'STATE' => $sWebserviceState));
     $oModuleOverviewView->addItem($oWebserviceStateView);
     return $oModuleOverviewView;
 }
 /**
  * The contructor method forthis class.
  * @param array $aParams The params have to contain the key 
  * 'soap-service-url', with a valid URL to the webservice. They can 
  * contain a key 'soap-connection-options' for the SoapClient constructor 
  * and a key 'resources' with al list of files to upload.
  * @throws UnexpectedValueException If 'soap-service-url' is not set or the Webservice is not available.
  */
 public function __construct(&$aParams)
 {
     $this->aParams = $aParams;
     $this->aFiles = $aParams['resources'];
     if (empty($this->aParams['soap-service-url'])) {
         throw new UnexpectedValueException('soap-service-url-not-set');
     }
     if (!BsConnectionHelper::urlExists($this->aParams['soap-service-url'])) {
         throw new UnexpectedValueException('soap-service-url-not-valid');
     }
     //If a slash is last char, remove it.
     if (substr($this->aParams['soap-service-url'], -1) == '/') {
         $this->aParams['soap-service-url'] = substr($this->aParams['soap-service-url'], 0, -1);
     }
 }