public function buildAjaxResult()
 {
     $return = array();
     $return['error'] = $this->error;
     $return['stepDone'] = $this->stepDone;
     $return['next'] = $this->next;
     $return['status'] = $this->next == 'error' ? 'error' : 'ok';
     $return['next_desc'] = $this->next_desc;
     $this->nextParams['config'] = $this->getConfig();
     foreach ($this->ajaxParams as $v) {
         if (property_exists($this, $v)) {
             $this->nextParams[$v] = $this->{$v};
         } else {
             $this->nextQuickInfo[] = sprintf($this->l('[WARNING] Property %s is missing'), $v);
         }
     }
     $return['nextParams'] = $this->nextParams;
     if (!isset($return['nextParams']['dbStep'])) {
         $return['nextParams']['dbStep'] = 0;
     }
     $return['nextParams']['typeResult'] = $this->nextResponseType;
     $return['nextQuickInfo'] = $this->nextQuickInfo;
     $return['nextErrors'] = $this->nextErrors;
     return Tools14::jsonEncode($return);
 }
 public function buildAjaxResult()
 {
     $return['error'] = $this->error;
     $return['stepDone'] = $this->stepDone;
     $return['next'] = $this->next;
     $return['status'] = $this->next == 'error' ? 'error' : 'ok';
     $return['nextDesc'] = $this->nextDesc;
     $return['upgradeDbStep'] = 0;
     foreach ($this->ajaxParams as $v) {
         if (property_exists($this, $v)) {
             $this->nextParams[$v] = $this->{$v};
         }
     }
     $return['nextParams'] = $this->nextParams;
     if (!isset($return['nextParams']['upgradeDbStep'])) {
         $return['nextParams']['upgradeDbStep'] = 0;
     }
     $return['nextParams']['typeResult'] = $this->nextResponseType;
     $return['nextQuickInfo'] = $this->nextQuickInfo;
     return Tools14::jsonEncode($return);
 }