mimeType="text/xml"; Utils::MapAgentInit("../../../Web/src/webconfig.ini"); $this->cred = new MgUserInformation(); $this->cred->SetMgUsernamePassword("Administrator","admin"); $this->cred->SetLocale("en"); $this->site = new MgSiteConnection(); $this->site->Open($this->cred); $this->mappingSrvc = $this->site->CreateService(MgServiceType::MappingService); $this->unitTestParamVm = new SqliteVM($db, true); $this->arrayParam = array(); } function __destruct() { unset($this->site); unset($this->cred); unset($this->unitTestParamVm); unset($this->arrayParam); unset($this->mappingSrvc); } function GetParam($arrayParam, $paramSet, $paramName) { $this->unitTestParamVm->Execute("Select ParamValue from Params WHERE ParamSet=$paramSet AND ParamName=$paramName"); $paramValue = $this->unitTestParamVm->GetString("ParamValue"); if (isset($paramValue)) { $arrayParam[$paramName] = $paramValue; } } //TODO: Not completed yet. Converts $xmlString into a StringCollection object function ToMgStringCollection($xmlString) { $stringCollection = new MgStringCollection(); while ( (substr_count($xmlString, "")) > 0) { $start = strpos($xmlString, ""); $end = strpos($xmlString, ""); } } } ?>