protected function setUp() { $this->loader = new XMLLoader(); $DD = $this->loader->load(DD); $DDP = new DataDescriptionParser($DD); $data = $DDP->parseData(); $this->attributes = $data['DD']['transformationDictionary']; $FL = $this->loader->load(FL); $FLP = new FeatureListParser($FL, 'en'); $data = $FLP->parseData(); $this->IMs = $data['interestMeasures']; }
protected function setUp() { $loader = new XMLLoader(); $DD = $loader->load(DD); $DDP = new DataDescriptionParser($DD); $data = $DDP->parseData(); $this->attributes = $data['DD']['transformationDictionary']; $FL = $loader->load(FL); $FLP = new FeatureListParser($FL, 'en'); $data = $FLP->parseData(); $this->coefficients = $data['BBA']['coefficients']; }
public function testParseDataDictionary() { $DDP = new DataDescriptionParser($this->DD); $data = $DDP->parseData(); $data = $data['DD']['dataDictionary']; // all fields parsed $this->assertEquals(10, count($data)); // correct field name $this->assertTrue(isset($data['amount'])); // correct field data type $this->assertEquals('Long integer', $data['amount']); }
protected function setUp() { $loader = new XMLLoader(); $this->ERAssociationRules = $loader->load(ERASSOCIATIONRULES); $this->ERTaskSettingRules = $loader->load(ERTASKSETTING); $this->ERARQueryRules = $loader->load(ERARQUERY); $DD = $loader->load(DD); $DDP = new DataDescriptionParser($DD); $data = $DDP->parseData(); $this->attributes = $data['DD']['transformationDictionary']; $FL = $loader->load(FL); $FLP = new FeatureListParser($FL, 'en'); $data = $FLP->parseData(); $this->IMs = $data['interestMeasures']; }
public function parseData() { $DDParser = new DataDescriptionParser($this->DD); $this->data = array_merge_recursive($this->data, $DDParser->parseData()); $this->data['FLs'] = array(); foreach ($this->FLs as $FL) { $FLParser = new FeatureListParser($FL, $this->lang); array_push($this->data['FLs'], $FLParser->parseData()); } usort($this->data['FLs'], array('IZI\\Parser\\DataParser', 'sortFLs')); $FGCParser = new FieldGroupConfigParser($this->FGC, $this->data['DD'], $this->data['FLs'][0]['BBA']['coefficients'], $this->lang); $this->data['FGC'] = $FGCParser->parseConfig(); $ERParser = new RulesParser($this->ER, $this->data['DD'], $this->data['FLs'][0]['interestMeasures']); $this->data = array_merge_recursive($this->data, $ERParser->parseData()); $ETreeParser = new ETreeParser($this->ETree); $this->data = array_merge_recursive($this->data, $ETreeParser->parseData()); return $this->data; }
protected function setUp() { $loader = new XMLLoader(); $this->ER = $loader->load(ERTASKSETTING); $this->ERXPath = new DOMXPath($this->ER); $CP = new ConnectiveParser($this->ER, $this->ERXPath); $DD = $loader->load(DD); $DDP = new DataDescriptionParser($DD); $data = $DDP->parseData(); $this->attributes = $data['DD']['transformationDictionary']; $FL = $loader->load(FL); $FLP = new FeatureListParser($FL, 'en'); $data = $FLP->parseData(); $this->IMs = $data['interestMeasures']; $this->DBAP = new DBAParser($this->ER, $this->ERXPath, $CP); $this->DBAP->parseDBAs(); $this->BBAP = new BBAParser($this->ER, $this->ERXPath); $this->BBAP->parseBBAs(); }
protected function setUp() { $this->ER = new \DOMDocument('1.0', 'UTF-8'); $this->ER->load(ERARQUERY, LIBXML_NOBLANKS); $this->ERXPath = new \DOMXPath($this->ER); $CP = new ConnectiveParser($this->ER, $this->ERXPath); $loader = new XMLLoader(); $DD = $loader->load(DD); $DDP = new DataDescriptionParser($DD); $data = $DDP->parseData(); $this->attributes = $data['DD']['transformationDictionary']; $FL = $loader->load(FL); $FLP = new FeatureListParser($FL, 'en'); $data = $FLP->parseData(); $this->IMs = $data['interestMeasures']; $this->DBAP = new DBAParser($this->ER, $this->ERXPath, $CP); $this->DBAP->parseDBAs(); $this->BBAP = new BBAParser($this->ER, $this->ERXPath); $this->BBAP->parseBBAs(); }