Esempio n. 1
0
 protected function doLevelSumRels(&$result)
 {
     $this->doLevelMulRels($result);
     wfProfileIn(__METHOD__);
     $ops = array('+', '-');
     while ($this->mCur->type == AFPToken::TOp && in_array($this->mCur->value, $ops)) {
         $op = $this->mCur->value;
         $this->move();
         $r2 = new AFPData();
         $this->doLevelMulRels($r2);
         if ($op == '+') {
             $result = AFPData::sum($result, $r2);
         }
         if ($op == '-') {
             $result = AFPData::sub($result, $r2);
         }
     }
     wfProfileOut(__METHOD__);
 }