Example #1
0
 /**
  * Display the GUI while the move progresses
  */
 protected function GUI_progress()
 {
     echo '<div id="plugin_move__progress">';
     echo $this->locale_xhtml('progress');
     $progress = $this->plan->getProgress();
     if (!$this->plan->inProgress()) {
         echo '<div id="plugin_move__preview">';
         echo '<p>';
         echo '<strong>' . $this->getLang('intro') . '</strong> ';
         echo '<span>' . $this->getLang('preview') . '</span>';
         echo '</p>';
         echo $this->plan->previewHTML();
         echo '</div>';
     }
     echo '<div class="progress" data-progress="' . $progress . '">' . $progress . '%</div>';
     echo '<div class="output">';
     if ($this->plan->getLastError()) {
         echo '<p><div class="error">' . $this->plan->getLastError() . '</div></p>';
     } elseif ($this->plan->inProgress()) {
         echo '<p><div class="info">' . $this->getLang('inexecution') . '</div></p>';
     }
     echo '</div>';
     // display all buttons but toggle visibility according to state
     echo '<p></p>';
     echo '<div class="controls">';
     echo '<img src="' . DOKU_BASE . 'lib/images/throbber.gif" class="hide" />';
     $this->btn('start', !$this->plan->inProgress());
     $this->btn('retry', $this->plan->getLastError());
     $this->btn('skip', $this->plan->getLastError());
     $this->btn('continue', $this->plan->inProgress() && !$this->plan->getLastError());
     $this->btn('abort');
     echo '</div>';
     echo '</div>';
 }
 public function build_log_line($type, $from, $to, $success)
 {
     $logEntry = array($type, $from, $to, $success);
     array_push($this->moveLog, $logEntry);
     return parent::build_log_line($type, $from, $to, $success);
 }
 public function findMissingDocuments($src, $dst, $type = self::TYPE_PAGES)
 {
     parent::findMissingDocuments($src, $dst, $type);
 }