Lines Matching refs:this

21         switch ($this->type) {
35 switch ($this->type) {
49 return $this->data[0];
56 return serialize(array($this->type, $this->data));
63 list($this->type, $this->data) = unserialize($data);
73 $this->type = self::ERROR;
74 $this->data = $message;
84 $this->type = self::WARNING;
85 $this->data = $message;
99 $this->plugin = $plugin;
100 $this->indent = 0;
101 $this->svgCache = array();
125 $this->printJavascriptLang();
152 print($this->getLang($message->getFormatId(), call_user_func_array(array($this, 'getLang'), $message->data)));
163 $matches = $this->getLangPlural('sts_matches', $matchCount);
164 $pages = $this->getLangPlural('sts_pages', $pageCount);
168 $stats = $this->getLang('sts_preview', $matches, $pages);
172 $edits = $this->getLangPlural('sts_edits', $editCount);
173 $stats = $this->getLang('sts_apply', $matches, $pages, $edits);
180 $this->printApplyCheckBox('be-applyall', $stats, 'ttl_applyall');
196 $this->printPageStats($page);
197 $this->printPageActions($page->getId());
198 $this->printPageMatches($page);
215 $this->printFormEdit('lbl_ns', 'namespace');
216 $this->printFormEdit('lbl_search', 'search');
217 $this->printFormEdit('lbl_replace', 'replace');
218 $this->printFormEdit('lbl_summary', 'summary');
223 $this->printOptions();
227 // Value for this hidden input is set before submit through jQuery, containing
235 $this->printSubmitButton('cmd[preview]', 'btn_preview');
236 $this->printSubmitButton('cmd[apply]', 'btn_apply', $enableApply);
241 $this->printButton('cancel', 'btn_cancel');
260 $lang[$id] = $this->getLang($id);
273 print('<span class="be-apply" title="' . $this->getLang($title) . '">');
283 $stats = $this->getLang('sts_page', $page->getId(), $this->getLangPlural('sts_matches', count($page->getMatches())));
288 $this->printApplyCheckBox($page->getId(), $stats, 'ttl_applyfile', !$page->hasUnmarkedMatches());
305 $this->printAction($link, 'ttl_view', 'file-document');
306 $this->printAction($link . (strpos($link, '?') === FALSE ? '?' : '&') . 'do=edit', 'ttl_edit', 'pencil');
307 $this->printAction('#be-mainform', 'ttl_mainform', 'arrow-down');
316 $action = '<a class="be-action" href="' . $href . '" title="' . $this->getLang($titleId) . '">';
317 $action .= $this->getSvg($iconId);
330 $this->printMatchHeader($page->getId(), $match);
331 $this->printMatchTable($match);
346 $this->printApplyCheckBox($id, $id, 'ttl_applymatch', $match->isMarked());
364 $original = $this->prepareText($match->getOriginalText(), $match->isApplied() ? ' be-replaced' : 'be-preview');
365 $replaced = $this->prepareText($match->getReplacedText(), $match->isApplied() ? ' be-applied' : 'be-preview');
366 $before = $this->prepareText($match->getContextBefore());
367 $after = $this->prepareText($match->getContextAfter());
371 print('<td class="be-arrow">' . $this->getSvg('slide-arrow-right') . '</td>');
395 print('<td class="be-title">' . $this->getLang($title) . '</td>');
400 $this->printEditBox($name);
406 $placeholder = $this->getLang($this->getPlaceholderId($name));
408 $this->printEditBox($name, FALSE, TRUE, !$multiline, $placeholder);
409 $this->printTextArea($name, $multiline, $placeholder);
413 $this->printEditBox($name);
414 $this->printCheckBox('minor', 'lbl_minor');
445 $style = 'min-width: ' . $this->getLang('dim_options') . ';';
450 print('<div>' . $this->getLang('lbl_searchmode') . '</div>');
452 $this->printRadioButton('searchmode', 'text', 'lbl_searchtext');
453 $this->printRadioButton('searchmode', 'regexp', 'lbl_searchregexp');
457 $this->printCheckBox('matchcase', 'lbl_matchcase');
458 $this->printCheckBox('multiline', 'lbl_multiline');
464 $this->printAction('javascript:openAdvancedOptions();', 'ttl_extoptions', 'settings');
468 $style = 'width: ' . $this->getLang('dim_extoptions') . ';';
473 $this->printAction('javascript:closeAdvancedOptions();', '', 'close');
477 $this->printCheckBox('advregexp', 'lbl_advregexp');
478 $this->printCheckBox('matchctx', 'printMatchContextLabel');
479 $this->printCheckBox('searchlimit', 'printSearchLimitLabel');
480 $this->printCheckBox('keepmarks', 'printKeepMarksLabel');
481 $this->printCheckBox('tplpatterns', 'lbl_tplpatterns');
482 $this->printCheckBox('checksummary', 'lbl_checksummary');
491 $label = preg_split('/(\{\d\})/', $this->getLang('lbl_matchctx'), -1, PREG_SPLIT_DELIM_CAPTURE);
494 $this->printLabel('matchctx', $label[0]);
495 $this->printEditBox($edits[$label[1]], TRUE, isset($_REQUEST['matchctx']));
496 $this->printLabel('matchctx', $label[2]);
497 $this->printEditBox($edits[$label[3]], TRUE, isset($_REQUEST['matchctx']));
498 $this->printLabel('matchctx', $label[4]);
505 $label = explode('{1}', $this->getLang('lbl_searchlimit'));
507 $this->printLabel('searchlimit', $label[0]);
508 $this->printEditBox('searchmax', TRUE, isset($_REQUEST['searchlimit']));
509 $this->printLabel('searchlimit', $label[1]);
516 $label = explode('{1}', $this->getLang('lbl_keepmarks'));
519 $this->printLabel('keepmarks', $label[0]);
526 print('<option value="' . $i . '"' . $selected . '>' . $this->getLang('lbl_keepmarks' . $i) . '</option>');
531 $this->printLabel('keepmarks', $label[1]);
593 // empty line. To workaround this duplicate the empty line.
617 $this->printLabel($name, $label);
636 $this->printLabel($id, $label);
646 $this->$label();
650 $label = $this->getLang($label);
666 $html = '<input type="submit" class="button be-button be-submit" name="' . $name . '" value="' . $this->getLang($label) . '"';
679 print('<input type="button" class="button be-button" name="' . $name . '" value="' . $this->getLang($label) . '" />');
686 $string = $this->plugin->getLang($id);
707 $lang = $this->getLang($id . $this->getPluralForm($quantity), $quantity);
713 return $this->getLang($id . '#many', $quantity);
747 if (!array_key_exists($id, $this->svgCache)) {
748 $this->svgCache[$id] = file_get_contents(DOKU_PLUGIN . 'batchedit/images/' . $id . '.svg');
751 return $this->svgCache[$id];