/dokuwiki/_test/tests/inc/ |
D | pageutils_clean_id.test.php | 23 ['page', 'page'], 27 ['pàge', 'page'], 28 ['pagĖ', 'page'], 30 ['*page*', 'page'], 37 ['page:page', 'page:page'], 38 ['page;page', 'page:page'], 39 ['page:page 1.2', 'page:page_1.2'], 40 ['page._#!', 'page'], 41 ['._#!page', 'page'], 42 ['page._#!page', 'page._page'], [all …]
|
D | common_pagetemplate.test.php | 9 'id' => 'page-id-long', 10 'tpl' => '"@PAGE@" "@!PAGE@" "@!!PAGE@" "@!PAGE!@"', 12 …$this->assertEquals(parsePageTemplate($data), '"page id long" "Page id long" "Page Id Long" "PAGE …
|
D | auth_aclcheck_caseinsensitive.test.php | 40 'namespace:page @Group1 1', 41 'namespace:page @group2 1', 45 $this->assertEquals(auth_aclcheck('page', '', array()), AUTH_NONE); 46 $this->assertEquals(auth_aclcheck('namespace:page', '', array()), AUTH_NONE); 50 $this->assertEquals(auth_aclcheck('page', 'jill', array('foo')), AUTH_NONE); 51 $this->assertEquals(auth_aclcheck('namespace:page', 'jill', array('foo')), AUTH_NONE); 55 … $this->assertEquals(auth_aclcheck('page', 'jill', array('foo', 'group1')), AUTH_UPLOAD); 56 … $this->assertEquals(auth_aclcheck('namespace:page', 'jill', array('foo', 'group1')), AUTH_READ); 60 … $this->assertEquals(auth_aclcheck('page', 'jill', array('foo', 'Group2')), AUTH_UPLOAD); 61 … $this->assertEquals(auth_aclcheck('namespace:page', 'jill', array('foo', 'Group2')), AUTH_READ); [all …]
|
D | auth_aclcheck.test.php | 35 $this->assertEquals(auth_aclcheck('page', '',array()), AUTH_NONE); 36 $this->assertEquals(auth_aclcheck('namespace:page','',array()), AUTH_NONE); 40 $this->assertEquals(auth_aclcheck('page', 'jill',array('foo')), AUTH_NONE); 41 $this->assertEquals(auth_aclcheck('namespace:page','jill',array('foo')), AUTH_NONE); 45 … $this->assertEquals(auth_aclcheck('page', 'jill',array('foo','user')), AUTH_UPLOAD); 46 … $this->assertEquals(auth_aclcheck('namespace:page','jill',array('foo','user')), AUTH_UPLOAD); 50 $this->assertEquals(auth_aclcheck('page', 'john',array('foo')), AUTH_ADMIN); 51 $this->assertEquals(auth_aclcheck('namespace:page','john',array('foo')), AUTH_ADMIN); 64 'namespace:page @user 1', 68 $this->assertEquals(auth_aclcheck('page', '',array()), AUTH_NONE); [all …]
|
D | common_saveWikiText.test.php | 51 … * assertions against changelog entries and attic after external edit, create or deletion of page 80 $this->assertFileDoesNotExist($attic, 'page does not yet exist in attic'); 85 * Execute a whole bunch of saves on the same page and check the results 87 * 1.1 create a page 89 * 1.3 update the page with new text 100 $page = 'page'; 101 $file = wikiFN($page); 104 // 1.1 create a page 105 saveWikiText($page, 'teststring', '1st save', false); 117 $pagelog = new PageChangeLog($page); [all …]
|
D | indexer_rename.test.php | 16 … saveWikiText($this->old_id, 'Old test content', 'Created old test page for indexer rename test'); 25 …$this->assertTrue($this->indexer->renamePage($this->old_id, $newid), 'Renaming the page to a new i… 28 …otEquals($this->indexer->getPID($this->old_id), $oldpid, 'PID for the old page unchanged after ren… 29 … $this->assertEquals($this->indexer->getPID($newid), $oldpid, 'New page has not the old pid.'); 31 …('old' => array($newid => 1)), $this->indexer->lookup($query), '"Old" doesn\'t find the new page'); 36 saveWikiText($newid, 'Existing content', 'Created page for move_to_existing_page'); 42 …$this->assertTrue($this->indexer->renamePage($this->old_id, $newid), 'Renaming the page to an exis… 44 …$this->assertNotEquals($this->indexer->getPID($this->old_id), $oldpid, 'PID for old page unchanged… 45 …indexer->getPID($this->old_id), $existingpid, 'PID for old page is now PID of the existing page.'); 46 … $this->assertEquals($this->indexer->getPID($newid), $oldpid, 'New page has not the old pid.'); [all …]
|
D | changelog_hasrevisions.test.php | 6 * Tests for if a page has revisions with hasRevisions() 14 * test page has revisions 25 * test page has no revisions
|
D | FulltextPageLookupTest.php | 17 $this->assertEquals(['test:page1' => null, 'ns:page2' => null], ft_pageLookup('page')); 18 $this->assertEquals(['test:page1' => null], ft_pageLookup('page @test')); 19 $this->assertEquals(['ns:page2' => null], ft_pageLookup('page ^test'));
|
/dokuwiki/_test/tests/File/ |
D | PageResolverTest.php | 20 ['context', 'page', 'page'], 21 ['context', '.page', 'page'], 22 ['context', '.:page', 'page'], 25 ['lev1:lev2:context', 'page', 'lev1:lev2:page'], 26 ['lev1:lev2:context', '.page', 'lev1:lev2:page'], 27 ['lev1:lev2:context', '.:page', 'lev1:lev2:page'], 30 ['context', '..page', 'page'], 31 ['context', '..:page', 'page'], 34 ['lev1:lev2:context', '..page', 'lev1:page'], 35 ['lev1:lev2:context', '..:page', 'lev1:page'], [all …]
|
/dokuwiki/inc/Remote/Response/ |
D | Page.php | 8 * Represents a single page revision in the wiki. 10 class Page extends ApiResponse class 12 /** @var string The page ID */ 14 /** @var int The page revision aka last modified timestamp */ 16 /** @var int The page size in bytes */ 18 /** @var string The page title */ 20 /** @var int The current user's permissions for this page */ 22 /** @var string MD5 sum over the page's content (if available and requested) */ 24 /** @var string The author of this page revision (if available and requested) */ 27 /** @var string The file path to this page revision */ [all …]
|
D | Link.php | 9 /** @var string The wiki page this link points to, same as `href` for external links */ 10 public $page; variable in dokuwiki\\Remote\\Response\\Link 16 * @param string $page The wiki page this link points to, same as `href` for external links 19 public function __construct($type, $page, $href) argument 22 $this->page = $page;
|
/dokuwiki/inc/Remote/ |
D | ApiCore.php | 13 use dokuwiki\Remote\Response\Page; alias 197 * This call allows to check the permissions for a given page/media and user/group combination. 203 * @param string $page A page or media ID 209 public function aclCheck($page, $user = '', $groups = []) argument 214 $page = $this->checkPage($page, 0, false, AUTH_NONE); 217 return auth_quickaclcheck($page); 227 return auth_aclcheck($page, $user, $groups); 244 * @param bool $hash Whether to include a MD5 hash of the page content 245 * @return Page[] A list of matching pages 272 return array_map(static fn($item) => new Page( [all …]
|
/dokuwiki/inc/Subscriptions/ |
D | SubscriberManager.php | 22 * Adds a new subscription for the given page or namespace 25 …* *exact* page or namespace. It will *not* modify any subscription that may exist in higher namesp… 29 * @param string $id The target page or namespace, specified by id; Namespaces 67 * Removes a subscription for the given page or namespace 69 * This removes all subscriptions matching the given criteria on the given page or 73 * @param string $id The target object’s (namespace or page) id 100 * $INFO['subscribed'] is either false if no subscription for the current page 104 * @param string $id Page ID, defaults to global $ID 153 * This function searches all relevant subscription files for a page or 156 * @param string $page The target object’s (namespace or page) id [all …]
|
/dokuwiki/inc/ |
D | indexer.php | 113 * Adds/updates the search index for the given page 117 * @param string $page name of the page to index 124 function idx_addPage($page, $verbose = false, $force = false) argument 126 $idxtag = metaFN($page, '.indexed'); 127 // check if page was deleted but is still in the index 128 if (!page_exists($page)) { 130 if ($verbose) echo "Indexer: $page does not exist, ignoring" . DOKU_LF; 134 $result = $Indexer->deletePage($page); 147 if ($last > @filemtime(wikiFN($page))) { 148 if ($verbose) echo "Indexer: index for $page up to date" . DOKU_LF; [all …]
|
/dokuwiki/lib/tpl/dokuwiki/css/ |
D | content.less | 2 * This file provides the main design styles for the page content. 11 .dokuwiki .page h1 {margin-left: 0;} 12 .dokuwiki .page h2 {margin-left: .666em;} 13 .dokuwiki .page h3 {margin-left: 1.776em;} 14 .dokuwiki .page h4 {margin-left: 3em;} 15 .dokuwiki .page h5 {margin-left: 4.5712em;} 16 .dokuwiki .page div.level1 {margin-left: 0;} 17 .dokuwiki .page div.level2 {margin-left: 1em;} 18 .dokuwiki .page div.level3 {margin-left: 2em;} 19 .dokuwiki .page div.level4 {margin-left: 3em;} [all …]
|
/dokuwiki/data/pages/wiki/ |
D | welcome.txt | 10 Your wiki needs to have a start page. As long as it doesn't exist, this link will be red: [[:start]… 12 …w that link and create the page. If you need help with using the syntax you can always refer to th… 14 …nt to use a sidebar. To create it, just edit the [[:sidebar]] page. Everything in that page will b… 20 …iting pages you might want to have a look at the [[this>doku.php?do=admin&page=config|configuratio…
|
/dokuwiki/bin/ |
D | dwpage.php | 31 'force obtaining a lock for the page (generally bad idea)', 41 'Utility to help command line Dokuwiki page editing, allow ' . 49 'a lock for the page. ' . "\n" . 50 'If a working_file is specified, this is where the page is copied to. ' . 51 'Otherwise defaults to the same as the wiki page in the current ' . 56 'The wiki page to checkout', 81 'The wiki page to create or update', 103 'Obtains or updates a lock for a wiki page' 107 'The wiki page to lock', 115 'Removes a lock for a wiki page.' [all …]
|
D | wantedpages.php | 47 'Sort by wanted or origin page', 81 foreach ($this->getPages($startdir) as $page) { 82 $this->internalLinks($page); 150 … $page = ['id' => pathID(substr($dir . '/' . $entry, $trunclen)), 'file' => $dir . '/' . $entry]; 151 $pages[] = $page; 161 * @param array $page array with page id and file path 163 protected function internalLinks($page) argument 166 $instructions = p_get_instructions(file_get_contents($page['file'])); 167 $resolver = new PageResolver($page['id']); 168 $pid = $page['id'];
|
/dokuwiki/inc/TreeBuilder/ |
D | ControlPageBuilder.php | 12 * A tree builder that generates a tree from a control page 14 …* A control page is a wiki page containing a nested list of external and internal links. This buil… 15 * parses the control page and generates a tree of nodes representing the links. 30 * Parse the control page 52 throw new \RuntimeException('No instructions for control page found'); 93 // remember this page as the parent for this level 95 // parent is the last page on the previous level
|
/dokuwiki/inc/ChangeLog/ |
D | RevisionInfo.php | 17 public const MODE_PAGE = 'page'; 30 * - id: page id 38 * - mode: (internal use) ether "media" or "page" 52 * Set or return whether this revision is current page or media file 56 * link button depend on relation to current page or media file. A changelog line does 57 * not indicate whether it corresponds to current page or media file. 103 * file icon of the page or media file 115 // page revision 121 * edit date and time of the page or media file 150 * editor of the page or media file [all …]
|
/dokuwiki/inc/Search/ |
D | Indexer.php | 23 * Adds the contents of a page to the fulltext index 25 * The added text replaces previous words for the same page. 26 * An empty value erases the page. 28 * @param string $page a page name 29 * @param string $text the body of the page 35 public function addPageWords($page, $text) argument 41 $pid = $this->getPIDNoLock($page); 48 // get word usage in page 103 * Split the words in a page and add them to the index. 105 * @param string $text content of the page [all …]
|
/dokuwiki/inc/Cache/ |
D | CacheRenderer.php | 23 if (!isset($this->page)) { 28 if ($this->_time < @filemtime(metaFN($this->page, '.meta'))) { 40 $metadata = p_get_metadata($this->page); 76 // page implies metadata and possibly some other dependencies 77 if (isset($this->page)) { 79 $valid = p_get_metadata($this->page, 'date valid');
|
/dokuwiki/inc/Menu/ |
D | PageMenu.php | 8 * Actions manipulating the current page. Shown as a floating menu in the dokuwiki template 12 protected $view = 'page';
|
/dokuwiki/_test/tests/Remote/ |
D | ApiCoreTest.php | 140 $this->assertEquals(AUTH_UPLOAD, $this->remote->call('core.aclCheck', ['page' => $id])); 153 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', ['page' => $id])); 340 $this->remote->call('core.getPage', ['page' => $id, 'rev' => 0]), 346 $this->remote->call('core.getPage', ['page' => $id, 'rev' => $rev1]), 352 $this->remote->call('core.getPage', ['page' => $id, 'rev' => $rev2]), 358 $this->remote->call('core.getPage', ['page' => $id, 'rev' => 1234]), 364 $this->remote->call('core.getPage', ['page' => 'foobar', 'rev' => 1234]), 365 'Non existing page given' 389 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => 0]), 395 $this->remote->call('core.getPageHTML', ['page' => $id, 'rev' => $rev1]), [all …]
|
/dokuwiki/_test/tests/TreeBuilder/ |
D | PageTreeBuilderTest.php | 16 // Create a test page hierarchy 17 saveWikiText('namespace:start', 'This is the start page', 'test'); 18 saveWikiText('namespace:page1', 'This is page 1', 'test'); 19 saveWikiText('namespace:page2', 'This is page 2', 'test'); 20 saveWikiText('namespace:subns:start', 'This is the subns start page', 'test'); 21 saveWikiText('namespace:subns:page3', 'This is page 3 in subns', 'test'); 22 saveWikiText('namespace:subns:deeper:start', 'This is the deeper start page', 'test'); 23 saveWikiText('namespace:subns:deeper:page4', 'This is page 4 in deeper', 'test');
|