Lines Matching refs:this
39 $this->setGlossary($this->loadGlossary());
48 if ($this->getConf('match') && !preg_match('/' . $this->getConf('match') . '/i', ":$ID")) {
53 $tokens = $this->findMatchingTokens($text);
64 $this->internallink($this->getConf('ns') . ':' . $token['id'], $token['term']);
83 $schema = $this->getConf('schema');
84 $field = $this->getConf('field');
113 $this->glossary = $glossary;
114 $this->buildPatterns();
123 if (!$this->glossary) {
124 $this->regex = null;
130 foreach ($this->glossary as $terms) {
135 $this->regex = '/\b(?:' . implode('|', $patterns) . ')\b/';
148 if (!$this->regex) return false;
150 if (!preg_match_all($this->regex, $text, $matches, PREG_OFFSET_CAPTURE)) {
155 foreach (array_keys($this->glossary) as $num => $id) {
156 if (!$this->glossary[$id]) continue; // this page has been linked before
167 $this->glossary[$id] = false; // don't link this page again