예제 #1
0
 protected final function _bootstrapImporter(array $config)
 {
     if (!empty($config['retain_keys'])) {
         $this->_importModel->retainKeys(true);
     }
     return $this->_bootstrap($config);
 }
예제 #2
0
 public function runStep(XenForo_ControllerAdmin_Abstract $controller, XenForo_ImportSession $session, $step, $start, array $options = array())
 {
     if (!$step || !method_exists($this, 'step' . $step)) {
         throw new XenForo_Exception('Invalid step ' . $step);
     }
     ignore_user_abort(true);
     $this->_session = $session;
     $this->_controller = $controller;
     $this->_bootstrap($session->getConfig());
     $steps = $this->getSteps();
     if (isset($steps[$step])) {
         if (!$this->_importModel->canRunStep($step, $steps, $session->getRunSteps())) {
             throw new XenForo_Exception('Step ' . $step . ' cannot be run.');
         }
     }
     return $this->{'step' . $step}($start, $options);
 }
예제 #3
0
 protected function _getStatusUpdateUserIdMap(XenForo_Model_Import $model, array $statusUpdates)
 {
     return $model->getUserIdsMapFromArray($statusUpdates, 'status_member_id');
 }