Lines Matching refs:doc

178         $this->doc = trim($this->doc);
182 while (substr($this->doc, 0, strlen($pattern)) == $pattern) {
183 $this->doc = substr($this->doc, strlen($pattern));
187 while (substr($this->doc, 0, strlen($pattern2)) == $pattern2) {
188 $this->doc = substr($this->doc, strlen($pattern2));
195 …$this->doc = preg_replace('/[^\x{0009}\x{000a}\x{000d}\x{0020}-\x{D7FF}\x{E000}-\x{FFFD}]+/u', ' '…
209 $this->doc = htmlentities($this->doc);
211 echo '<pre>'.$this->doc.'</pre>';
217 $this->doc = str_replace('{{CONTENT}}', $this->doc, $template);
227 $this->doc = str_replace('{{EDITED_AT}}', $changed_at, $this->doc);
228 $this->doc = str_replace('{{EDITED_BY}}', $user, $this->doc);
234 $this->doc = str_replace('{{WIKIURL}}', $url, $this->doc);
238 self::xml_errors($this->doc);
239 $this->doc = self::remove_whitespace($this->doc);
250 $zip->addFromString('main.xml', $this->doc);
254 $this->doc = file_get_contents($tmpZipFile);
325 $this->doc = 'NO MAPPING FOUND'.$this->doc;
350 $doc = self::cleanTemplate($templateParts[0]);
354 $doc = self::cleanTemplate($templateParts[1]);
434 $doc = $string;
444 $doc = str_replace(' style="cs-0"', ' style="cs-6"', $doc);
455 $doc = str_replace($mapping['subpattern'], $args, $doc);
466 …$doc = str_replace('{{LENGTH}}', $hederLength + 10 /* don't know the algorithmus, 10 is an assumpt…
470 $doc = str_replace(array(':?:'), array('<c style=\'cs-0\' marker=\'1\'>?</c>'), $doc);
478 …mp_args, 1).'</td><td style="font-family: monospace;">'.trim(htmlentities($doc, NULL, 'UTF-8')).'<…
481 $this->doc .= $doc;
508 $doc = new DOMDocument('1.0', 'utf-8');
509 $doc->loadXML( $xml );
546 $doc = new DOMDocument('1.0', 'utf-8');
547 $doc->loadXML( $xml );
550 $doc->preserveWhiteSpace = FALSE;
551 $doc->formatOutput = FALSE;
553 $doc->preserveWhiteSpace = FALSE;
554 $doc->formatOutput = TRUE;
557 return self::cleanTemplate($doc->saveXML());