public function createFromApplication($appId) { // get the map objects "overview" and "mapframe1" $this->mainMap = map::selectMainMapByApplication($appId); $this->overviewMap = map::selectOverviewMapByApplication($appId); // a wWFS is basically just a vectorlayer, and a WFSconf is just a configured WFS, // so it makes sense to attach the WFSCONFIDstring to to the mapobject // this clearly needs a better solution though... try { $ev = new ElementVar($appId, "mapframe1", "wfsConfIdString"); $this->generalExtensionArray['WFSCONFIDSTRING'] = $ev->value; } catch (Exception $E) { // ... exceprtions are a terribkle way to do this, but I am not going to rewrite the ElementVar class $this->generalExtensionArray['WFSCONFIDSTRING'] = ""; } $this->createXml(); $this->saveAsFile(); }