| /dokuwiki/_test/tests/inc/parser/ |
| H A D | renderer_xhtml.test.php | 19 $this->R = new Doku_Renderer_xhtml(); 23 unset($this->R); 27 $this->R->table_open(); 30 $this->assertEquals($expected, $this->R->doc); 34 $this->R->table_open(4); 37 $this->assertEquals($expected, $this->R->doc); 41 $this->R->table_open(4, 4); 44 $this->assertEquals($expected, $this->R->doc); 48 $this->R->table_open(4, 4, 100); 51 $this->assertEquals($expected, $this->R->doc); [all …]
|
| /dokuwiki/_test/tests/inc/ |
| H A D | io_rmdir.test.php | 9 $this->assertTrue($dir !== false); 10 $this->assertTrue(is_dir($dir)); 13 $this->assertTrue(chdir($dir)); 14 $this->assertEquals($dir, getcwd()); 17 $this->assertFalse(io_rmdir('', false)); 19 $this->assertTrue(is_dir($dir)); 20 $this->assertTrue(is_dir($top)); 22 $this->assertFalse(io_rmdir('', true)); 24 $this->assertTrue(is_dir($dir)); 25 $this->assertTrue(is_dir($top)); [all …]
|
| H A D | indexer_rename.test.php | 13 $this->indexer = idx_get_indexer(); 14 $this->indexer->clear(); 16 … saveWikiText($this->old_id, 'Old test content', 'Created old test page for indexer rename test'); 17 idx_addPage($this->old_id); 23 $oldpid = $this->indexer->getPID($this->old_id); 25 …$this->assertTrue($this->indexer->renamePage($this->old_id, $newid), 'Renaming the page to a new i… 26 io_rename(wikiFN($this->old_id), wikiFN($newid)); 28 …$this->assertNotEquals($this->indexer->getPID($this->old_id), $oldpid, 'PID for the old page uncha… 29 … $this->assertEquals($this->indexer->getPID($newid), $oldpid, 'New page has not the old pid.'); 31 …$this->assertEquals(array('old' => array($newid => 1)), $this->indexer->lookup($query), '"Old" doe… [all …]
|
| H A D | input.test.php | 46 $filter = array($this,'myfilter'); 48 $this->assertNotSame('foobar', $INPUT->str('zstring')); 49 $this->assertSame('foobar', $INPUT->filter()->str('zstring')); 50 $this->assertSame('bar', $INPUT->filter($filter)->str('foo')); 51 $this->assertSame('bar', $INPUT->filter()->str('znull', 'bar', true)); 52 … $this->assertNotSame('foobar', $INPUT->str('zstring')); // make sure original input is unmodified 54 $this->assertNotSame('foobar', $INPUT->get->str('zstring')); 55 $this->assertSame('foobar', $INPUT->get->filter()->str('zstring')); 56 $this->assertSame('bar', $INPUT->get->filter($filter)->str('foo')); 57 $this->assertSame('bar', $INPUT->get->filter()->str('znull', 'bar', true)); [all …]
|
| H A D | parserutils_set_metadata_during_rendering.test.php | 5 // the id used for this test case 21 $this->id = 'test:p_set_metadata_during_rendering'; 22 $this->active = true; 25 saveWikiText($this->id, 'Test ' . time(), 'Test data setup'); 30 $this, 37 $this, 41 …$EVENT_HANDLER->register_hook('PARSER_HANDLER_DONE', 'BEFORE', $this, 'helper_inject_test_instruct… 43 // Change the global plugin controller so this test can be a fake syntax plugin 45 $this->plugin_controller = $plugin_controller; 46 $plugin_controller = $this; [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/HTTP/ |
| H A D | Parser.php | 15 * * Redistributions of source code must retain the above copyright notice, this list of 18 * * Redistributions in binary form must reproduce the above copyright notice, this list 23 * to endorse or promote products derived from this software without specific prior 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS 33 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 133 * Input data length (to avoid calling strlen() everytime this is needed) 167 $this->data = $data; 168 $this->data_length = strlen($this->data); 178 while ($this->state && $this->state !== self::STATE_EMIT && $this->has_data()) { 179 $state = $this->state; [all …]
|
| /dokuwiki/vendor/phpseclib/phpseclib/phpseclib/File/ |
| H A D | ANSI.php | 154 $this->base_attr_cell = clone $attr_cell; 155 $this->attr_cell = clone $attr_cell; 157 $this->setHistory(200); 158 $this->setDimensions(80, 24); 171 $this->max_x = $x - 1; 172 $this->max_y = $y - 1; 173 $this->x = $this->y = 0; 174 $this->history = $this->history_attrs = []; 175 $this->attr_row = array_fill(0, $this->max_x + 2, $this->base_attr_cell); 176 $this->screen = array_fill(0, $this->max_y + 1, ''); [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/XML/Declaration/ |
| H A D | Parser.php | 15 * * Redistributions of source code must retain the above copyright notice, this list of 18 * * Redistributions in binary form must reproduce the above copyright notice, this list 23 * to endorse or promote products derived from this software without specific prior 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS 33 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 120 * Input data length (to avoid calling strlen() everytime this is needed) 143 $this->data = $data; 144 $this->data_length = strlen($this->data); 155 while ($this->state && $this->state !== self::STATE_EMIT && $this->has_data()) { 156 $state = $this->state; [all …]
|
| /dokuwiki/lib/scripts/jquery/ |
| H A D | jquery-ui.min.js | 6 …this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},V.extend(n,… argument
|
| /dokuwiki/lib/plugins/extension/_test/ |
| H A D | ExtensionTest.php | 25 $this->assertFalse($extension->isTemplate()); 26 $this->assertEquals('plugin', $extension->getType()); 27 $this->assertEquals('extension', $extension->getBase()); 28 $this->assertEquals('extension', $extension->getId()); 29 $this->assertEquals('`extension`', $extension->getId(true)); 30 $this->assertEquals(DOKU_INC.'lib/plugins/extension', $extension->getCurrentDir()); 31 $this->assertEquals(DOKU_INC.'lib/plugins/extension', $extension->getInstallDir()); 32 $this->assertEquals('Extension Manager', $extension->getDisplayName()); 33 $this->assertEquals('Andreas Gohr', $extension->getAuthor()); 34 $this->assertEquals('andi@splitbrain.org', $extension->getEmail()); [all …]
|
| /dokuwiki/inc/Parsing/Handler/ |
| H A D | Table.php | 20 $last_call = end($this->calls); 21 $this->writeCall(['table_end', [], $last_call[2]]); 23 $this->process(); 24 $this->callWriter->finalise(); 25 unset($this->callWriter); 31 foreach ($this->calls as $call) { 34 $this->tableStart($call); 37 $this->tableRowClose($call); 38 $this->tableRowOpen(['tablerow_open', $call[1], $call[2]]); 42 $this->tableCell($call); [all …]
|
| H A D | Lists.php | 17 $last_call = end($this->calls); 18 $this->writeCall(['list_close', [], $last_call[2]]); 20 $this->process(); 21 $this->callWriter->finalise(); 22 unset($this->callWriter); 29 foreach ($this->calls as $call) { 32 $this->listOpen($call); 35 $this->listStart($call); 38 $this->listEnd($call); 41 $this->listContent($call); [all …]
|
| H A D | Preformatted.php | 13 $last_call = end($this->calls); 14 $this->writeCall(['preformatted_end', [], $last_call[2]]); 16 $this->process(); 17 $this->callWriter->finalise(); 18 unset($this->callWriter); 24 foreach ($this->calls as $call) { 27 $this->pos = $call[2]; 30 $this->text .= "\n"; 33 $this->text .= $call[1][0]; 36 if (trim($this->text)) { [all …]
|
| /dokuwiki/lib/plugins/extension/ |
| H A D | ExtensionApiResponse.php | 11 /** @var string The type of this extension ("plugin" or "template") */ 14 /** @var string The id of this extension (templates are prefixed with "template") */ 17 /** @var string The base name of this extension */ 20 /** @var string The display name of this extension */ 23 /** @var string The installed version/date of this extension */ 26 /** @var string The author of this extension */ 29 /** @var string The description of this extension */ 32 /** @var bool Whether this extension is installed */ 35 /** @var bool Whether this extension is enabled */ 41 /** @var bool Whether this extension is bundled with DokuWiki */ [all …]
|
| /dokuwiki/vendor/kissifrot/php-ixr/src/Message/ |
| H A D | Message.php | 29 $this->message =& $message; 35 … // merged from WP #10698 - this method avoids the RAM usage of preg_replace on very large messages 36 $header = preg_replace('/<\?xml.*?\?' . '>/s', '', substr($this->message, 0, 100), 1); 37 $this->message = trim(substr_replace($this->message, $header, 0, 100)); 38 if ('' == $this->message) { 43 $header = preg_replace('/^<!DOCTYPE[^>]*+>/i', '', substr($this->message, 0, 200), 1); 44 $this->message = trim(substr_replace($this->message, $header, 0, 200)); 45 if ('' == $this->message) { 50 $root_tag = substr($this->message, 0, strcspn(substr($this->message, 0, 20), "> \t\r\n")); 60 if ($element_limit && 2 * $element_limit < substr_count($this->message, '<')) { [all …]
|
| /dokuwiki/inc/File/ |
| H A D | MediaFile.php | 28 $this->id = $id; //FIXME should it be cleaned? 29 $this->path = mediaFN($id, $rev); 30 $this->rev = $rev; 32 [$this->ext, $this->mime, $this->downloadable] = mimetype($this->path, false); 38 return $this->id; 44 return $this->rev; 50 return $this->path; 60 return noNS($this->id); 66 if (!$this->mime) return 'application/octet-stream'; 67 return $this->mime; [all …]
|
| /dokuwiki/inc/Menu/Item/ |
| H A D | AbstractItem.php | 8 * This class defines a single Item to be displayed in one of DokuWiki's menus. Plugins 9 * can extend those menus through action plugins and add their own instances of this class, 33 /** @var string the page id this action links to */ 35 /** @var string the method to be used when this action is used in a form */ 41 /** @var string this item's label may contain a placeholder, which is replaced with this */ 43 /** @var string the full path to the SVG icon of this menu item */ 49 /** @var int the context this item is shown in */ 64 $this->id = $ID; 65 $this->type = $this->getType(); 66 $this->params['do'] = $this->type; [all …]
|
| /dokuwiki/lib/plugins/config/_test/ |
| H A D | ConfigParserTest.php | 21 $this->assertEquals('42', $conf['int1']); 22 $this->assertEquals('6*7', $conf['int2']); 24 $this->assertEquals('Hello World', $conf['str1']); 25 $this->assertEquals('G\'day World', $conf['str2']); 26 $this->assertEquals('Hello World', $conf['str3']); 27 $this->assertEquals("Hello 'World'", $conf['str4']); 28 $this->assertEquals('Hello "World"', $conf['str5']); 30 $this->assertEquals(array('foo', 'bar', 'baz'), $conf['arr1']); 39 $this->assertEquals(0, $conf['onoff1']); 40 $this->assertEquals(1, $conf['onoff2']); [all …]
|
| /dokuwiki/inc/Feed/ |
| H A D | FeedPageProcessor.php | 26 $opt = ['rev' => $this->getRev()]; 29 $opt = ['rev' => $this->getRev(), 'do' => 'revisions']; 36 $opt = ['rev' => $this->getRev(), 'do' => 'diff']; 39 return wl($this->getId(), $opt, true, '&'); 49 $diff = $this->getDiff(); 55 $diff = $this->getDiff(); 59 … $content .= '<tr><th colspan="2" width="50%">' . dformat($this->getPrev()) . '</th>'; 66 if ($this->isExisting()) { 67 $html = p_wiki_xhtml($this->getId(), '', false); 69 $html = p_wiki_xhtml($this->getId(), $this->getRev(), false); [all …]
|
| /dokuwiki/lib/plugins/config/_test/Setting/ |
| H A D | AbstractSettingTest.php | 18 $class = get_class($this); 21 $this->class = $class; 26 $setting = new $this->class('test'); 27 $this->assertEquals('test', $setting->getKey()); 28 $this->assertSame(false, $setting->isProtected()); 29 $this->assertSame(true, $setting->isDefault()); 30 $this->assertSame(false, $setting->hasError()); 31 $this->assertSame(false, $setting->shouldBeSaved()); 36 $setting = new $this->class('test'); 37 $this->assertSame(true, $setting->shouldHaveDefault()); [all …]
|
| /dokuwiki/vendor/splitbrain/lesserphp/src/ |
| H A D | Parser.php | 97 $this->eatWhiteDefault = true; 98 $this->sourceName = $sourceName; // name used for error messages 100 $this->writeComments = false; 123 $this->count = 0; 124 $this->line = 1; 126 $this->env = null; // block stack 127 $this->buffer = $this->writeComments ? $buffer : $this->removeComments($buffer); 128 $this->pushSpecialBlock('root'); 129 $this->eatWhiteDefault = true; 130 $this->seenComments = []; [all …]
|
| /dokuwiki/vendor/simplepie/simplepie/src/ |
| H A D | Gzdecode.php | 15 * * Redistributions of source code must retain the above copyright notice, this list of 18 * * Redistributions in binary form must reproduce the above copyright notice, this list 23 * to endorse or promote products derived from this software without specific prior 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS 33 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 194 $this->compressed_data = $data; 195 $this->compressed_size = strlen($data); 205 if ($this->compressed_size >= $this->min_compressed_size) { 209 if (substr($this->compressed_data, 0, 3) !== "\x1F\x8B\x08") { 214 $this->flags = ord($this->compressed_data[3]); [all …]
|
| /dokuwiki/inc/Remote/Response/ |
| H A D | User.php | 35 $this->login = $login; 36 $this->name = $name; 37 $this->mail = $mail; 38 $this->groups = $groups; 40 if ($this->login === '') { 41 $this->login = $INPUT->server->str('REMOTE_USER'); 44 if ($this->login === '') { 49 if ($this->login === $INPUT->server->str('REMOTE_USER')) { 50 $this->name = $this->name ?: $USERINFO['name']; 51 $this->mail = $this->mail ?: $USERINFO['mail']; [all …]
|
| /dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/ |
| H A D | RSSCreator091.php | 13 /** @var string Stores this RSS feed's version number. */ 21 $this->_setRSSVersion("0.91"); 22 $this->contentType = "application/rss+xml"; 26 * Sets this RSS feed's version number. 32 $this->RSSVersion = $version; 38 $feed = "<?xml version=\"1.0\" encoding=\"".$this->encoding."\"?>\n"; 39 $feed .= $this->_createGeneratorComment(); 40 $feed .= $this->_createStylesheetReferences(); 41 $feed .= "<rss version=\"".$this->RSSVersion."\""; 43 if (count($this->items) > 0 [all …]
|
| /dokuwiki/inc/parser/ |
| H A D | xhtmlsummary.php | 16 * @todo Is this currently used anywhere? Should it? 31 $this->doc .= DOKU_LF . '<div>' . DOKU_LF; 37 $this->doc = $this->sum_summary; 38 $this->doc .= DOKU_LF . '</div>' . DOKU_LF; 49 if (!$this->sum_pageTitle) { 50 $this->info['sum_pagetitle'] = $text; 51 $this->sum_pageTitle = true; 53 $this->doc .= DOKU_LF . '<h' . $level . '>'; 54 $this->doc .= $this->_xmlEntities($text); 55 $this->doc .= "</h$level>" . DOKU_LF; [all …]
|