Lines Matching defs:session
990 // request parsing, session loading and saving, etc.
994 private $session;
1008 public function __construct($session) {
1009 $this->session = $session;
1019 $progress = new BatcheditProgress($this->session->getId(), BatcheditProgress::SEARCH, count($index));
1023 $interrupted = $page->findMatches($regexp, $replacement, $limit - $this->session->getMatchCount(),
1027 $this->session->addPage($page);
1033 $this->session->addWarning('war_searchlimit');
1038 $this->session->addWarning('war_timeout');
1043 $this->session->addWarning('war_cancelled');
1048 if ($this->session->getMatchCount() == 0) {
1049 $this->session->addWarning('war_nomatches');
1059 $policy = new BatcheditMarkPolicyVerifyBoth($this->session->getPages(), $this->session->getCachedPages());
1063 $policy = new BatcheditMarkPolicyVerifyMatched($this->session->getPages(), $this->session->getCachedPages());
1067 $policy = new BatcheditMarkPolicyVerifyOffset($this->session->getPages());
1071 $policy = new BatcheditMarkPolicyVerifyContext($this->session->getPages());
1086 $progress = new BatcheditProgress($this->session->getId(), BatcheditProgress::APPLY,
1087 array_reduce($this->session->getPages(), function ($marks, $page) {
1091 foreach ($this->session->getPages() as $page) {
1097 $this->session->addEdits($page->applyMatches($summary, $minorEdit));
1100 $this->session->addWarning($error);
1106 $this->session->addWarning('war_timeout');
1111 $this->session->addWarning('war_cancelled');
1214 return file_exists(BatcheditSessionCache::getFileName($this->session->getId(), 'cancel'));