Lines Matching refs:this

22         $this->plan = plugin_load('helper', 'move_plan');
30 $label = $this->getLang('menu');
31 if($this->plan->isCommited()) $label .= ' '.$this->getLang('inprogress');
46 * If this admin plugin is for admins only
61 $this->createPlanFromInput();
64 if($this->plan->isCommited()) {
68 $this->plan->nextStep();
71 $this->plan->nextStep(true);
74 $this->plan->abort();
85 if($this->plan->isCommited()) {
86 $this->GUI_progress();
89 $this->GUI_simpleForm();
102 if($this->plan->isCommited()) return false;
104 $this->plan->setOption('autoskip', $INPUT->bool('autoskip'));
105 $this->plan->setOption('autorewrite', $INPUT->bool('autorewrite'));
110 msg($this->getLang('nodst'), -1);
119 $this->plan->addPageNamespaceMove($src, $dst);
120 $this->plan->addMediaNamespaceMove($src, $dst);
122 $this->plan->addPageNamespaceMove($src, $dst);
124 $this->plan->addMediaNamespaceMove($src, $dst);
127 $this->plan->addPageMove($ID, $INPUT->str('dst'));
129 $this->plan->commit();
139 $this->plan->addPageNamespaceMove($entry['src'], $entry['dst']);
141 $this->plan->addMediaNamespaceMove($entry['src'], $entry['dst']);
145 $this->plan->addPageMove($entry['src'], $entry['dst']);
147 $this->plan->addMediaMove($entry['src'], $entry['dst']);
152 $this->plan->commit();
165 echo $this->locale_xhtml('move');
169 printf($this->getLang('treelink'), $treelink);
176 $form->startFieldset($this->getLang('legend'));
178 $form->addElement(form_makeRadioField('class', 'page', $this->getLang('movepage') . ' <code>' . $ID . '</code>', '', 'block radio click-page', array('checked' => 'checked')));
179 $form->addElement(form_makeRadioField('class', 'namespace', $this->getLang('movens') . ' <code>' . getNS($ID) . '</code>', '', 'block radio click-ns'));
181 $form->addElement(form_makeTextField('dst', $ID, $this->getLang('dst'), '', 'block indent'));
182 $form->addElement(form_makeMenuField('type', array('pages' => $this->getLang('move_pages'), 'media' => $this->getLang('move_media'), 'both' => $this->getLang('move_media_and_pages')), 'both', $this->getLang('content_to_move'), '', 'block indent select'));
184 $form->addElement(form_makeCheckboxField('autoskip', '1', $this->getLang('autoskip'), '', 'block', ($this->getConf('autoskip') ? array('checked' => 'checked') : array())));
185 $form->addElement(form_makeCheckboxField('autorewrite', '1', $this->getLang('autorewrite'), '', 'block', ($this->getConf('autorewrite') ? array('checked' => 'checked') : array())));
187 $form->addElement(form_makeButton('submit', 'admin', $this->getLang('btn_start')));
198 echo $this->locale_xhtml('progress');
200 $progress = $this->plan->getProgress();
202 if(!$this->plan->inProgress()) {
205 echo '<strong>' . $this->getLang('intro') . '</strong> ';
206 echo '<span>' . $this->getLang('preview') . '</span>';
208 echo $this->plan->previewHTML();
216 if($this->plan->getLastError()) {
217 echo '<p><div class="error">' . $this->plan->getLastError() . '</div></p>';
218 } elseif ($this->plan->inProgress()) {
219 echo '<p><div class="info">' . $this->getLang('inexecution') . '</div></p>';
227 $this->btn('start', !$this->plan->inProgress());
228 $this->btn('retry', $this->plan->getLastError());
229 $this->btn('skip', $this->plan->getLastError());
230 $this->btn('continue', $this->plan->inProgress() && !$this->plan->getLastError());
231 $this->btn('abort');
245 * @param bool $show should this control be visible?
251 $label = $this->getLang('btn_' . $control);