Lines Matching refs:text
19 * This class handles the rewriting of wiki text to update the links
204 * Rewrite a text in order to fix the content after the given moves.
207 * @param string $text The text to be rewritten
208 * @return string The rewritten wiki text
210 public function rewrite($id, $text) {
254 return $Parser->parse($text);
258 * Rewrite the text of a page according to the recorded moves, the rewritten text is saved
261 * @param string|null $text Old content of the page. When null is given the content is loaded from disk
264 public function rewritePage($id, $text = null, $save = true) {
266 if(is_null($text)) {
267 $text = rawWiki($id);
271 $old_text = $text;
272 $text = $this->rewrite($id, $text);
274 $changed = ($old_text != $text);
283 saveWikiText($id, $text, $this->symbol . ' ' . $this->getLang('linkchange'), $this->getConf('minor'));
294 return $text;