Lines Matching refs:this
24 $this->helpers = $this->loadHelper("authorstats", true);
25 if (!$this->helpers->statsFileExists())
26 $this->_initializeData();
33 $controller->register_hook("ACTION_SHOW_REDIRECT", "BEFORE", $this, "_updateSavedStats");
34 $controller->register_hook("PARSER_CACHE_USE", "BEFORE", $this, "_cachePrepare");
35 … $controller->register_hook("ACTION_ACT_PREPROCESS", "BEFORE", $this, "_allow_show_author_pages");
36 $controller->register_hook("TPL_ACT_UNKNOWN", "BEFORE", $this, "_show_author_pages");
49 $flags = explode(",", str_replace(" ", "", $this->getConf("pagelist_flags")));
51 $usd = $this->helpers->readUserJSON($name);
54 if ((!$pagelist = $this->loadHelper("pagelist"))) {
96 $this->helpers->createDirIfMissing("data");
99 array_map("unlink", glob($this->helpers->basedir . "/*.json"));
102 $files = $this->_getChangeLogs($dir);
104 $this->_updateStats($file, $sd, $lastchange, false);
121 $sd = $this->helpers->readJSON();
124 $file = $this->_getChangesFileForPage($event->data["id"]);
125 $this->_updateStats($file, $sd, $lastchange);
139 if (!isset($cache->mode) || !in_array($cache->mode, $this->supportedModes)) return;
143 if (@filemtime($cache->cache) < @filemtime($this->helpers->summaryfile)) {
153 $files = $this->helpers->rglob($dir . "[^_]*.changes", GLOB_NOSORT);
190 $r = $this->_parseChange($line);
218 $usd = $this->helpers->readUserJSON($r["author"]);
223 $this->helpers->saveUserJSON($r["author"], $usd);
227 $this->helpers->saveJSON($sd);