Lines Matching defs:id
345 function dokuwiki_get_link(&$xhtml, $id, $name = NULL)
348 $resolveid = $id; // To prevent resolve_pageid to change $id value
352 return $this->internallink($xhtml, $id, $name);
354 $resolveid = $id;
358 return $this->internalmedia($xhtml, $id, $name);
360 return $this->internallink($xhtml, $id, $name);
366 function internallink(&$xhtml, $id, $name = NULL, $search = NULL, $returnonly = false, $linktype = 'content')
374 $parts = explode('?', $id, 2);
376 $id = $parts[0];
380 // For empty $id we need to know the current $ID
382 // correct $id and resolve_pageid() use cleanID($id)
384 if ($id === '') {
385 $id = $ID;
388 // RPHACK for get_link to work with local links '#id'
389 if (substr($id, 0, 1) === '#') {
390 $id = $ID . $id;
394 // default name is based on $id as given
395 $default = $xhtml->_simpleTitle($id);
397 // now first resolve and clean up the $id
398 $id = (new PageResolver($ID))->resolveId($id);
399 $exists = page_exists($id);
401 $name = $xhtml->_getLinkTitle($name, $default, $isImage, $id, $linktype);
415 if (str_contains($id, '#'))
416 list($id, $hash) = explode('#', $id, 2);
426 if ($id == $INFO['id']) {
432 $link['url'] = wl($id, $params);
434 $link['title'] = $id;
484 $link['url'] = ml($src, array('id' => $ID, 'cache' => $cache), ($linking == 'direct'));
492 $link['url'] = ml($src, array('id' => $ID, 'cache' => $cache), true);