function migrateProductsFromVmOne()
 {
     $this->checkPermissionForTools();
     $this->storeMigrationOptionsInSession();
     if (!class_exists('Migrator')) {
         require VMPATH_ADMIN . DS . 'helpers' . DS . 'migrator.php';
     }
     $migrator = new Migrator();
     $result = $migrator->migrateProducts();
     if ($result) {
         $msg = 'Migration products finished';
     } else {
         $msg = 'Migration products was interrupted by max_execution time, please restart';
     }
     $this->setRedirect($this->redirectPath, $result);
 }
 function migrateProductsFromVmOne()
 {
     JRequest::checkToken() or jexit('Invalid Token, in ' . JRequest::getWord('task'));
     $this->checkPermissionForTools();
     $this->storeMigrationOptionsInSession();
     if (!class_exists('Migrator')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'migrator.php';
     }
     $migrator = new Migrator();
     $result = $migrator->migrateProducts();
     if ($result) {
         $msg = 'Migration products finished';
     } else {
         $msg = 'Migration products was interrupted by max_execution time, please restart';
     }
     $this->setRedirect($this->redirectPath, $result);
 }