Lines Matching defs:id

26     /** @var int last section edit id, used by startSectionEdit */
57 * Key 'hid': header id
154 foreach ($this->footnotes as $id => $footnote) {
159 $this->doc .= '<sup><a href="#fnt__' . $id . '" id="fn__' . $id . '" class="fn_bot">';
160 $this->doc .= $id . ')</a></sup> ' . DOKU_LF;
163 $alt = array_keys($this->footnotes, "@@FNT$id");
167 $this->doc .= ', <sup><a href="#fnt__' . ($ref) . '" id="fn__' . ($ref) . '" class="fn_bot">';
197 * @param string $id the hash link
201 public function toc_additem($id, $text, $level)
207 $this->toc[] = html_mktocitem($id, $text, $level - $conf['toptoclevel'] + 1);
258 $header .= ' id="' . $hid . '">';
470 // assign new footnote id (we start at 1)
491 '<sup><a href="#fn__%d" id="fnt__%d" class="fn_top">%d)</a></sup>',
871 * @param string $id pageid
879 public function internallink($id, $name = null, $search = null, $returnonly = false, $linktype = 'content')
886 $parts = explode('?', $id, 2);
888 $id = $parts[0];
892 // For empty $id we need to know the current $ID
894 // correct $id and resolve_pageid() use cleanID($id)
896 if ($id === '') {
897 $id = $ID;
900 // default name is based on $id as given
901 $default = $this->_simpleTitle($id);
903 // now first resolve and clean up the $id
904 $id = (new PageResolver($ID))->resolveId($id, $this->date_at, true);
905 $exists = page_exists($id, $this->date_at, false, true);
908 $name = $this->_getLinkTitle($name, $default, $isImage, $id, $linktype);
921 [$id, $hash] = sexplode('#', $id, 2);
929 $link['more'] = 'data-wiki-id="' . $id . '"'; // id is already cleaned
934 $link['url'] = wl($id, $params);
936 $link['title'] = $id;
1210 'id' => $ID,
1226 'id' => $ID,
1811 * @param null|string $id linked page id (used to extract title from first heading)
1816 public function _getLinkTitle($title, $default, &$isImage, $id = null, $linktype = 'content')
1823 if (useHeading($linktype) && $id) {
1824 $heading = p_get_first_heading($id);