Пример #1
0
 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;
 }
Пример #2
0
 public function testParseData()
 {
     $parser = new ETreeParser($this->ETree);
     $this->assertArrayHasKey('recommendedAttributes', $parser->parseData());
     $this->assertCount(5, $parser->parseData()['recommendedAttributes']);
 }