Ejemplo n.º 1
0
 /**
  * Restart the import process. Undo any work we've done so far and erase state.
  *
  * @since 2.0.0
  * @access public
  */
 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');
 }