Exemplo n.º 1
0
 /**
  * It solves the rules if the data format is TaskSettings
  *
  * @param <String> $whichOne It is name of Element I get from the XML and then
  * proces further.
  */
 private function solveTaskSetting($whichOne)
 {
     $rule = $this->domER->getElementsByTagName($whichOne)->item(0);
     $ruleAR = new TaskSettingRule($rule, $this->domER);
     $this->jsonObject["rule0"] = $ruleAR->toJSON();
     $this->jsonObject["rules"] = 1;
 }