/dokuwiki/inc/File/ |
H A D | PageResolver.php | 6 * Creates an absolute page ID from a relative one 11 * Resolves a given ID to be absolute 16 public function resolveId($id, $rev = '', $isDateAt = false) argument 19 $id = (string) $id; 22 if (strpos($id, '#') !== false) { 23 [$id, $hash] = sexplode('#', $id, 2); 29 if ($id !== '') { 30 $id = parent::resolveId($id, $rev, $isDateAt); 31 $id = $this->resolveStartPage($id, $rev, $isDateAt); 33 $id = $this->resolveAutoPlural($id, $rev, $isDateAt); [all …]
|
H A D | Resolver.php | 10 /** @var string context page ID */ 12 /** @var string namespace of context page ID */ 25 * Resolves a given ID to be absolute 27 * @param string $id The ID to resolve 32 public function resolveId($id, $rev = '', $isDateAt = false) argument 37 if ($conf['useslash']) $id = str_replace('/', ':', $id); 39 $id = str_replace(';', ':', $id); 41 $id = $this->resolvePrefix($id); 42 return $this->resolveRelatives($id); 48 * @param string $id [all …]
|
/dokuwiki/inc/ |
H A D | pageutils.php | 21 * Fetch the an ID from request 26 * For $param='id' $conf['start'] is returned if no id was found. 27 * If the second parameter is true (default) the ID is cleaned. 31 * @param string $param the $_REQUEST variable name, default 'id' 32 * @param bool $clean if true, ID is cleaned 35 function getID($param = 'id', $clean = true) 42 $id = $INPUT->str($param); 44 //construct page id from request URI 45 if (empty($id) && $conf['userewrite'] == 2) { 52 if ($param != 'id') { [all …]
|
H A D | parserutils.php | 65 * Returns the parsed Wikitext in XHTML for the given id and revision. 70 * @param string $id page id 79 function p_wiki_xhtml($id, $rev = '', $excuse = true, $date_at = '') argument 81 $file = wikiFN($id, $rev); 84 //ensure $id is in global $ID (needed for parsing) 85 global $ID; 86 $keep = $ID; 87 $ID = $id; 92 … $ret = p_render('xhtml', p_get_instructions(io_readWikiPage($file, $id, $rev)), $info, $date_at); 97 $ret = p_cached_output($file, 'xhtml', $id); [all …]
|
/dokuwiki/_test/tests/inc/ |
H A D | template_include_page.test.php | 6 global $ID,$ACT; 9 $id = 'foo:bar'; 12 $this->assertEquals('foo:bar', tpl_pagetitle($id, true)); 16 global $ID,$ACT; 19 $ID = 'foo:bar'; 26 global $ID,$ACT; 28 $ID = 'foo:bar'; 35 global $ID,$ACT,$INPUT,$conf,$USERINFO; 42 $ID = 'foo:bar'; 52 global $ID,$ACT; [all …]
|
H A D | common_pagetemplate.test.php | 9 'id' => 'page-id-long', 12 …$this->assertEquals(parsePageTemplate($data), '"page id long" "Page id long" "Page Id Long" "PAGE …
|
H A D | common_ml.test.php | 55 $id = 'some:img.png'; 58 $tok = media_get_token($id,$w,0); 60 $expect = DOKU_BASE . $this->script . '?w='.$w.'&tok='.$tok.'&media='.$id; 61 $this->assertEquals($expect, ml($id, $args)); 69 $id = 'some:img.png'; 72 $tok = media_get_token($id,$w,0); 74 $expect = DOKU_BASE . $this->script . '?w='.$w.'&tok='.$tok.'&media='.$id; 75 $this->assertEquals($expect, ml($id, $args)); 83 $id = ':wiki:dokuwiki-128.png'; 90 $this->assertEquals($expect, ml($id, $args)); [all …]
|
H A D | cache_stalecheck.test.php | 7 global $ID; 9 $ID = 'stale'; 10 $file = wikiFN($ID); 13 saveWikiText($ID, 'Fresh', 'Created'); 16 $cache = new CacheRenderer($ID, $file, 'xhtml'); 25 $fresh = p_cached_output($file, 'xhtml', $ID);
|
H A D | pageutils_findnearest.test.php | 34 global $ID; 36 $ID = 'foo:bar:baz:test'; 42 global $ID; 48 $ID = '0:0:0'; 55 $ID = '0'; 61 global $ID; 65 $ID = 'foo:bar:baz:test'; 69 $ID = 'foo'; 75 $ID = 'foo:bar:baz:test'; 79 $ID = 'foo:bar:test'; [all …]
|
H A D | parserutils_set_metadata.test.php | 7 // the id used for this test case 8 private $id; variable in parserutils_set_metadata_test 51 $this->id = 'test:set_metadata_array_replace'; 52 saveWikiText($this->id, 'Test', 'Test data setup'); 53 $meta = p_get_metadata($this->id); 55 $this->assertEquals('1', $meta['user'], 'Initial page has wrong user ID'); 60 saveWikiText($this->id, 'Test1', 'Test first edit'); 61 $meta = p_get_metadata($this->id); 69 saveWikiText($this->id, 'Test2', 'Test second edit'); 70 $meta = p_get_metadata($this->id); [all …]
|
/dokuwiki/lib/plugins/authpdo/_test/pgsql/ |
H A D | django.sql | 39 id integer NOT NULL, field 64 ALTER SEQUENCE auth_group_id_seq OWNED BY auth_group.id; 72 id integer NOT NULL, field 98 ALTER SEQUENCE auth_group_permissions_id_seq OWNED BY auth_group_permissions.id; 106 id integer NOT NULL, field 133 ALTER SEQUENCE auth_permission_id_seq OWNED BY auth_permission.id; 141 id integer NOT NULL, field 162 id integer NOT NULL, field 188 ALTER SEQUENCE auth_user_groups_id_seq OWNED BY auth_user_groups.id; 209 ALTER SEQUENCE auth_user_id_seq OWNED BY auth_user.id; [all …]
|
/dokuwiki/inc/Ui/ |
H A D | Index.php | 48 global $ID; 52 $ns = getNS($ID); 59 return '<div id="index__tree" class="index__tree">' 76 global $ID, $conf; 79 $nofollow = ($ID != $conf['start'] || $conf['sitemap']) ? 'rel="nofollow"' : ''; 82 $base = ':' . $item['id']; 86 $link = wl($ID, 'idx=' . rawurlencode($item['id'])); 87 …$html .= '<a href="' . $link . '" title="' . $item['id'] . '" class="idx_dir"' . $nofollow . '><st… 91 // default is noNSorNS($id), but we want noNS($id) when useheading is off FS#2605 92 … $html .= html_wikilink(':' . $item['id'], useHeading('navigation') ? null : noNS($item['id'])); [all …]
|
/dokuwiki/inc/Subscriptions/ |
H A D | MediaSubscriptionSender.php | 14 * @param string $id Media file for which the notification is 18 …public function sendMediaDiff($subscriber_mail, $template, $id, $rev = false, $current_rev = false) argument 22 $file = mediaFN($id); 23 [$mime, /* ext */] = mimetype($id); 27 'MEDIA' => ml($id, $current_rev ? ('rev=' . $current_rev) : '', true, '&', true), 32 $trep['OLD'] = ml($id, "rev=$rev", true, '&', true); 37 $headers = ['Message-Id' => $this->getMessageID($id, @filemtime($file))]; 39 $headers['In-Reply-To'] = $this->getMessageID($id, $rev); 42 $this->send($subscriber_mail, 'upload', $id, $template, $trep, null, $headers);
|
H A D | PageSubscriptionSender.php | 16 * @param string $id Page for which the notification is 23 …public function sendPageDiff($subscriber_mail, $template, $id, $rev = null, $summary = '', $curren… argument 29 'PAGE' => $id, 30 'NEWPAGE' => wl($id, $current_rev ? ('rev=' . $current_rev) : '', true, '&'), 32 'SUBSCRIBE' => wl($id, ['do' => 'subscribe'], true, '&'), 38 $trep['OLDPAGE'] = wl($id, "rev=$rev", true, '&'); 40 $old_content = rawWiki($id, $rev); 41 $new_content = rawWiki($id); 62 $tdiff = rawWiki($id); 69 $headers = ['Message-Id' => $this->getMessageID($id)]; [all …]
|
H A D | SubscriberManager.php | 29 * @param string $id The target page or namespace, specified by id; Namespaces 37 public function add($id, $user, $style, $data = '') argument 44 $this->remove($id, $user); 61 $file = $this->file($id); 73 * @param string $id The target object’s (namespace or page) id 81 public function remove($id, $user = null, $style = null, $data = null) argument 87 $file = $this->file($id); 104 * @param string $id Page ID, defaults to global $ID 112 public function userSubscription($id = '', $user = '') argument 118 global $ID; [all …]
|
/dokuwiki/lib/scripts/ |
H A D | linkwiz.test.js | 14 { ref: 'a:b:c', id: 'a:b:d', expected: 'd' }, property 15 { ref: 'a:b:c', id: 'a:b:c:d:e', expected: '.:c:d:e' }, property 16 { ref: 'a:b:c', id: 'a:b:c:d:e', expected: '.:c:d:e' }, property 17 { ref: 'a', id: 'a:b:c', expected: 'a:b:c' }, property 18 { ref: 'a:b', id: 'c:d', expected: 'c:d' }, property 19 { ref: 'a:b:c', id: 'a:d:e', expected: '..:d:e' }, property 20 { ref: 'a:b:c:d', id: 'a:d:e', expected: '..:..:d:e' }, property 21 { ref: 'a:b', id: 'c', expected: ':c' }, property 24 testCases.forEach(({ ref, id, expected }, index) => { property 25 const result = LinkWizard.createRelativeID(ref, id);
|
H A D | fileuploaderextended.js | 17 onProgress: function(id, fileName, loaded, total){ argument 18 self._onProgress(id, fileName, loaded, total); 19 self._options.onProgress(id, fileName, loaded, total); 21 onComplete: function(id, fileName, result){ argument 22 self._onComplete(id, fileName, result); 23 self._options.onComplete(id, fileName, result); 25 onCancel: function(id, fileName){ argument 26 self._onCancel(id, fileName); 27 self._options.onCancel(id, fileName); 42 var id = this._handler.add(fileContainer); [all …]
|
H A D | fileuploader.js | 46 var id = 0; 47 return function(){ return id++; }; 268 onSubmit: function(id, fileName){}, argument 269 onProgress: function(id, fileName, loaded, total){}, argument 270 onComplete: function(id, fileName, responseJSON){}, argument 271 onCancel: function(id, fileName){}, argument 329 onProgress: function(id, fileName, loaded, total){ argument 330 self._onProgress(id, fileName, loaded, total); 331 self._options.onProgress(id, fileName, loaded, total); 333 onComplete: function(id, fileName, result){ argument [all …]
|
/dokuwiki/_test/tests/Remote/ |
H A D | ApiCoreTest.php | 138 $id = 'aclpage'; 140 $this->assertEquals(AUTH_UPLOAD, $this->remote->call('core.aclCheck', ['page' => $id])); 153 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', ['page' => $id])); 173 'id' => 'wiki:syntax', 182 'id' => 'wiki:dokuwiki', 216 'id' => 'wiki:syntax', 225 'id' => 'wiki:dokuwiki', 250 $id = 'wiki:syntax'; 251 $file = wikiFN($id); 253 idx_addPage($id); //full text search depends on index [all …]
|
/dokuwiki/vendor/simplepie/simplepie/src/Cache/ |
H A D | MySQL.php | 77 * Cache ID 81 protected $id; variable in SimplePie\\Cache\\MySQL 87 * @param string $name Unique ID for the cache 116 $this->id = $name . $type; 129 …ata` (`id` TEXT CHARACTER SET utf8 NOT NULL, `items` SMALLINT NOT NULL DEFAULT 0, `data` BLOB NOT … 138 …extras']['prefix'] . 'items` (`feed_id` TEXT CHARACTER SET utf8 NOT NULL, `id` TEXT CHARACTER SET … 161 'WHERE cd.id = i.feed_id ' . 174 …('SELECT COUNT(*) FROM `' . $this->options['extras']['prefix'] . 'cache_data` WHERE `id` = :feed'); 175 $query->bindValue(':feed', $this->id); 180 …'prefix'] . 'cache_data` SET `items` = :items, `data` = :data, `mtime` = :time WHERE `id` = :feed'; [all …]
|
/dokuwiki/inc/Remote/Response/ |
H A D | Page.php | 12 /** @var string The page ID */ 13 public $id; variable in dokuwiki\\Remote\\Response\\Page 33 * @param string $id The page ID 43 $id, argument 52 $this->id = $id; 53 $this->file = wikiFN($this->id, $revision); 56 $this->permission = $perms ?? auth_quickaclcheck($this->id); 74 $title = p_get_first_heading($this->id); 79 return $this->id; 97 $pagelog = new PageChangeLog($this->id, 1024); [all …]
|
H A D | Media.php | 12 /** @var string The media ID */ 13 public $id; variable in dokuwiki\\Remote\\Response\\Media 33 * @param string $id The media ID 42 $id, argument 51 $this->id = $id; 52 $this->file = mediaFN($this->id, $revision); 55 $this->permission = $perms ?? auth_quickaclcheck($this->id); 57 $this->isimage = (bool)($isimage ?? preg_match("/\.(jpe?g|gif|png)$/", $id)); 77 $pagelog = new MediaChangeLog($this->id, 1024); 85 return $this->id . '@' . $this->revision;
|
/dokuwiki/inc/Remote/ |
H A D | LegacyApiCore.php | 96 public function legacyGetPage($id) argument 99 return $this->getPage($id); 111 public function legacyGetPageVersion($id, $rev = '') argument 114 return $this->getPage($id, $rev); 126 public function legacyGetAttachment($id) argument 128 return new Base64(base64_decode($this->getMedia($id))); 134 public function legacygetAttachmentInfo($id) argument 136 $info = $this->getMediaInfo($id); 146 public function legacyGetPageHTML($id) argument 149 return $this->getPageHTML($id); [all …]
|
/dokuwiki/inc/ChangeLog/ |
H A D | RevisionInfo.php | 30 * - id: page id 42 if (!is_array($info) || !isset($info['id'])) { 110 $id = $this->val('id'); 113 return media_printicon($id); 116 …turn '<img class="icon" src="' . DOKU_BASE . 'lib/images/fileicons/file.png" alt="' . $id . '" />'; 176 $id = $this->val('id'); 181 $params = ['tab_details' => 'view', 'ns' => getNS($id), 'image' => $id]; 184 $display_name = $id; 185 $exists = file_exists(mediaFN($id, $rev)); 189 $href = wl($id, $params, false, '&'); [all …]
|
/dokuwiki/inc/Ui/Media/ |
H A D | DisplayRow.php | 18 $id = $this->mediaFile->getId(); 21 $jump = $this->scrollIntoView ? 'id="scroll__here"' : ''; 23 echo '<div title="' . $id . '" ' . $jump . '>'; 24 echo '<a id="h_:' . $id . '" class="' . $class . '">' . 30 $link = ml($id, '', true); 35 $link = wl('', ['do' => 'media', 'image' => $id, 'ns' => getNS($id)]); 41 $link = DOKU_BASE . 'lib/exe/mediamanager.php?delete=' . rawurlencode($id) . 43 echo ' <a href="' . $link . '" class="btn_media_delete" title="' . $id . '">' . 48 echo '<div class="example" id="ex_' . str_replace(':', '_', $id) . '">'; 49 echo $lang['mediausage'] . ' <code>{{:' . $id . '}}</code>'; [all …]
|