Lines Matching refs:this

28         $this->command = BatcheditRequest::COMMAND_WELCOME;
29 $this->config = new BatcheditConfig();
30 $this->session = new BatcheditSession($this->getConf('sessionexp'));
32 self::$instance = $this;
39 return $this->config;
47 $this->handleRequest();
50 $this->session->setError($error);
51 $this->session->expire();
59 $interface = new BatcheditInterface($this);
61 $interface->configure($this->config);
63 $interface->printBeginning($this->session->getId());
64 $interface->printMessages($this->session->getMessages());
66 if ($this->session->getMatchCount() > 0) {
67 $interface->printTotalStats($this->command, $this->session->getMatchCount(),
68 $this->session->getPageCount(), $this->session->getEditCount());
69 $interface->printMatches($this->session->getPages());
72 $interface->printMainForm($this->session->getMatchCount() > 0);
80 $request = new BatcheditRequest($this->config);
82 $this->command = $request->getCommand();
84 switch ($this->command) {
86 $this->handlePreview($request);
90 $this->handleApply($request);
99 $engine = $this->createEngine();
101 $this->session->setId($request->getSessionId());
102 $this->findMatches($engine, $request);
103 $this->markMatches($engine, $request);
104 $this->session->save($request, $this->config);
111 $engine = $this->createEngine();
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);
125 if ($this->getConf('timelimit') > 0) {
126 set_time_limit($this->getConf('timelimit'));
129 return new BatcheditEngine($this->session);
137 $this->config->getConf('searchlimit') ? $this->config->getConf('searchmax') : -1,
138 $this->config->getConf('matchctx') ? $this->config->getConf('ctxchars') : 0,
139 $this->config->getConf('ctxlines'), $this->config->getConf('tplpatterns'));
146 if (!$this->config->getConf('keepmarks') || $this->session->getMatchCount() == 0 || empty($request->getAppliedMatches())) {
150 $engine->markRequestedMatches($request->getAppliedMatches(), $this->config->getConf('markpolicy'));
157 if ($this->session->getMatchCount() == 0 || empty($request->getAppliedMatches())) {