Lines Matching defs:fileName
187 private $fileName;
197 $this->fileName = wikiFN($id);
201 if ($cache->isCached($this->fileName)) {
202 $this->namespace = $cache->getNamespaces($this->fileName);
207 $cache->update($this->fileName, $this->namespace);
215 $text = io_readWikiPage($this->fileName, $this->id);
216 $call = p_cached_instructions($this->fileName);
474 private $fileName;
485 $this->fileName = $conf['cachedir'] . '/refnotes.database.dat';
497 if (file_exists($this->fileName)) {
498 $this->cache = unserialize(io_readFile($this->fileName, false));
501 foreach (array_keys($this->cache) as $fileName) {
502 $this->requested[$fileName] = false;
511 public function isCached($fileName) {
514 if (array_key_exists($fileName, $this->cache)) {
515 if ($this->cache[$fileName]['time'] == @filemtime($fileName)) {
520 $this->requested[$fileName] = true;
528 public function getNamespaces($fileName) {
529 return $this->cache[$fileName]['ns'];
535 public function update($fileName, $namespace) {
536 $this->cache[$fileName] = array('ns' => $namespace, 'time' => @filemtime($fileName));
547 io_saveFile($this->fileName, serialize($this->cache));
555 foreach ($this->requested as $fileName => $requested) {
556 if (!$requested && array_key_exists($fileName, $this->cache)) {
557 unset($this->cache[$fileName]);