Lines Matching refs:id

42      * @param string $id The id of the page the metadata shall be loaded for
45 public function getMoveMeta($id) { argument
46 $all_meta = p_get_metadata($id, '', METADATA_DONT_RENDER);
79 public function unsetMoveMeta($id) { argument
80 p_set_metadata($id, array(self::METAKEY => array()), false, true);
86 * @param string $id affected page
92 public function setMoveMeta($id, $src, $dst, $type) { argument
93 $this->setMoveMetas($id, array($src => $dst), $type);
99 * @param string $id affected page
104 public function setMoveMetas($id, $moves, $type) { argument
108 if(!page_exists($id, '', false)) {
112 $meta = $this->getMoveMeta($id);
117 p_set_metadata($id, array(self::METAKEY => $meta), false, true);
125 * @param string $id moved page's original (and still current) id
127 public function setSelfMoveMeta($id) { argument
128 $meta = $this->getMoveMeta($id);
133 $meta['origin'] = $id;
135 p_set_metadata($id, array(self::METAKEY => $meta), false, true);
206 * @param string $id The id of the wiki page, if the page itself was moved the old id
210 public function rewrite($id, $text) { argument
211 $meta = $this->getMoveMeta($id);
217 if($origin == '') $origin = $id;
220 'id' => $id,
244 $Handler->init($id, $origin, $pages, $media, $handlers);
267 * @param string $id The id of the page that shall be rewritten
271 public function rewritePage($id, $text = null, $save = true) { argument
272 $meta = $this->getMoveMeta($id);
274 $text = rawWiki($id);
279 $text = $this->rewrite($id, $text);
282 $file = wikiFN($id, '', false);
287 $oldRev = filemtime(wikiFN($id));
290 …saveWikiText($id, $text, $this->symbol . ' ' . $this->getLang('linkchange'), $this->getConf('minor…
292 $this->unsetMoveMeta($id);
295 …msg('Error: Page ' . hsc($id) . ' needs to be rewritten because of page renames but is not writabl…