Lines Matching refs:request
13 require_once(DOKU_PLUGIN . 'batchedit/request.php');
43 * Handle user request
80 $request = new BatcheditRequest($this->config);
82 $this->command = $request->getCommand();
86 $this->handlePreview($request);
90 $this->handleApply($request);
98 private function handlePreview($request) {
101 $this->session->setId($request->getSessionId());
102 $this->findMatches($engine, $request);
103 $this->markMatches($engine, $request);
104 $this->session->save($request, $this->config);
110 private function handleApply($request) {
113 if (!$this->session->load($request, $this->config)) {
114 $this->findMatches($engine, $request);
117 $this->applyMatches($engine, $request);
118 $this->session->save($request, $this->config);
135 private function findMatches($engine, $request) {
136 $engine->findMatches($request->getNamespace(), $request->getRegexp(), $request->getReplacement(),
145 private function markMatches($engine, $request) {
146 if (!$this->config->getConf('keepmarks') || $this->session->getMatchCount() == 0 || empty($request->getAppliedMatches())) {
150 $engine->markRequestedMatches($request->getAppliedMatches(), $this->config->getConf('markpolicy'));
156 private function applyMatches($engine, $request) {
157 if ($this->session->getMatchCount() == 0 || empty($request->getAppliedMatches())) {
161 $engine->markRequestedMatches($request->getAppliedMatches());
162 $engine->applyMatches($request->getSummary(), $request->getMinorEdit());