applications/dashboard/controllers/class.importcontroller.php
public function Restart() {
      $this->Permission('Garden.Import'); // This permission doesn't exist, so only users with Admin == '1' will succeed.

      // Delete the individual table files.
      $Imp = new ImportModel();
      try {
         $Imp->LoadState();
         $Imp->DeleteFiles();
      } catch(Exception $Ex) {
      }
      $Imp->DeleteState();

      Redirect(strtolower($this->Application).'/import');
   }
public function Restart() {
      $this->Permission('Garden.Import'); // This permission doesn't exist, so only users with Admin == '1' will succeed.

      // Delete the individual table files.
      $Imp = new ImportModel();
      try {
         $Imp->LoadState();
         $Imp->DeleteFiles();
      } catch(Exception $Ex) {
      }
      $Imp->DeleteState();

      Redirect(strtolower($this->Application).'/import');
   }
public function Restart ( ) { $ this -> Permission ( 'Garden.Import' ) ; // This permission doesn't exist, so only users with Admin == '1' will succeed.
 // Delete the individual table files.
 $ Imp = new ImportModel ( ) ; try { $ Imp -> LoadState ( ) ; $ Imp -> DeleteFiles ( ) ; } catch ( Exception $ Ex ) { } $ Imp -> DeleteState ( ) ; Redirect ( strtolower ( $ this -> Application ) . '/import' ) ; }
Restart the import process. Undo any work we've done so far and erase state.

@since 2.0.0
@access public
Restart the import process . Undo any work we ve done so far and erase state .