Home
last modified time | relevance | path

Searched refs:call (Results 1 – 25 of 60) sorted by relevance

123

/dokuwiki/_test/tests/Remote/
H A DApiCallTest.php34 $call = new ApiCall([$this, 'dummyMethod1'], 'cat1');
37 $this->assertEquals('This is a test', $call->getSummary());
38 $this->assertEquals("With more information\nin several lines", $call->getDescription());
39 $args = $call->getArgs();
42 $docs = $call->getDocs();
46 $this->assertFalse($call->isPublic());
47 $call->setPublic();
48 $this->assertTrue($call->isPublic());
51 $this->assertEquals('cat1', $call->getCategory());
56 $call = new ApiCall('inlineSVG');
[all …]
H A DApiCoreAclCheckTest.php80 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', $params));
90 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', $params));
97 $this->assertEquals(AUTH_CREATE, $this->remote->call('core.aclCheck', $params));
104 $this->assertEquals(AUTH_CREATE, $this->remote->call('core.aclCheck', $params));
111 $this->assertEquals(AUTH_CREATE, $this->remote->call('core.aclCheck', $params));
118 $this->assertEquals(AUTH_UPLOAD, $this->remote->call('core.aclCheck', $params));
125 $this->assertEquals(AUTH_UPLOAD, $this->remote->call('core.aclCheck', $params));
132 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', $params));
139 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', $params));
146 $this->assertEquals(AUTH_ADMIN, $this->remote->call('core.aclCheck', $params));
H A DApiTest.php215 $this->assertEquals($remoteApi->call('wiki.stringTestMethod'), 'success');
216 $this->assertEquals($remoteApi->call('wiki.intTestMethod'), 42);
217 $this->assertEquals($remoteApi->call('wiki.floatTestMethod'), 3.14159265);
218 $this->assertEquals($remoteApi->call('wiki.dateTestMethod'), 2623452346);
219 $this->assertEquals($remoteApi->call('wiki.fileTestMethod'), 'file content');
220 $this->assertEquals($remoteApi->call('wiki.voidTestMethod'), null);
231 $remoteApi->call('wiki.voidTestMethod', array('something'));
249 $this->assertEquals($remoteApi->call('wiki.oneStringArgMethod', array('string')), 'string');
250 …$this->assertEquals($remoteApi->call('wiki.twoArgMethod', array('string', 1)), array('string', 1));
251 …$this->assertEquals($remoteApi->call('wiki.twoArgWithDefaultArg', array('string')), array('string'…
[all …]
H A DApiCoreTest.php80 $this->remote->call('core.getAPIVersion')
89 $this->remote->call('core.getWikiVersion')
99 $this->remote->call('core.getWikiTitle')
108 $this->remote->call('core.getWikiTime'),
140 $this->assertEquals(AUTH_UPLOAD, $this->remote->call('core.aclCheck', ['page' => $id]));
153 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', ['page' => $id]));
193 $this->remote->call(
237 $this->remote->call(
274 $this->remote->call(
316 $this->remote->call(
[all …]
/dokuwiki/inc/Parsing/Handler/
H A DLists.php29 foreach ($this->calls as $call) {
30 switch ($call[0]) {
32 $this->listOpen($call);
35 $this->listStart($call);
38 $this->listEnd($call);
41 $this->listContent($call);
50 protected function listStart($call) argument
52 $depth = $this->interpretSyntax($call[1][0], $listType);
58 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
59 $this->listCalls[] = ['listitem_open', [1], $call[2]];
[all …]
H A DBlock.php110 protected function addCall($call) argument
113 if ($key && $call[0] == 'cdata' && $this->calls[$key - 1][0] == 'cdata') {
114 $this->calls[$key - 1][1][0] .= $call[1][0];
116 $this->calls[] = $call;
121 protected function storeCall($call) argument
123 $this->calls[] = $call;
140 foreach ($calls as $key => $call) {
141 $cname = $call[0];
143 $cname = 'plugin_' . $call[1][0];
145 … $plugin_open = (($call[1][2] == DOKU_LEXER_ENTER) || ($call[1][2] == DOKU_LEXER_SPECIAL));
[all …]
H A DTable.php31 foreach ($this->calls as $call) {
32 switch ($call[0]) {
34 $this->tableStart($call);
37 $this->tableRowClose($call);
38 $this->tableRowOpen(['tablerow_open', $call[1], $call[2]]);
42 $this->tableCell($call);
45 $this->tableRowClose($call);
46 $this->tableEnd($call);
49 $this->tableDefault($call);
58 protected function tableStart($call) argument
[all …]
H A DQuote.php26 foreach ($this->calls as $call) {
27 switch ($call[0]) {
31 $this->quoteCalls[] = ['quote_open', [], $call[2]];
34 $quoteLength = $this->getDepth($call[1][0]);
39 $this->quoteCalls[] = ['quote_open', [], $call[2]];
44 $this->quoteCalls[] = ['quote_close', [], $call[2]];
46 } elseif ($call[0] != 'quote_start') {
47 $this->quoteCalls[] = ['linebreak', [], $call[2]];
58 $this->quoteCalls[] = ['quote_close', [], $call[2]];
62 $this->quoteCalls[] = ['quote_close', [], $call[2]];
[all …]
H A DNest.php29 public function writeCall($call) argument
31 $this->calls[] = $call;
58 foreach ($unmerged_calls as $call) $this->addCall($call);
67 * @param array $call
69 protected function addCall($call) argument
72 if ($key && $call[0] == 'cdata' && $this->calls[$key - 1][0] == 'cdata') {
73 $this->calls[$key - 1][1][0] .= $call[1][0];
74 } elseif ($call[0] == 'eol') {
77 $this->calls[] = $call;
H A DPreformatted.php24 foreach ($this->calls as $call) {
25 switch ($call[0]) {
27 $this->pos = $call[2];
33 $this->text .= $call[1][0];
H A DCallWriterInterface.php10 * @param array $call the call to be added
12 public function writeCall($call); argument
H A DAbstractRewriter.php23 public function writeCall($call) argument
25 $this->calls[] = $call;
H A DCallWriter.php19 public function writeCall($call) argument
21 $this->Handler->calls[] = $call;
/dokuwiki/_test/tests/inc/parser/
H A Dparser.inc.php28 function stripByteIndex($call) { argument
29 unset($call[2]);
30 if ($call[0] == "nest") {
31 $call[1][0] = array_map('stripByteIndex',$call[1][0]);
33 return $call;
/dokuwiki/inc/Debug/
H A DDebugHelper.php51 [$self, $call] = $backtrace;
57 self::formatCall($call),
58 $self['file'] ?? $call['file'] ?? '',
59 $self['line'] ?? $call['line'] ?? 0
65 * @param array $call
68 protected static function formatCall($call) argument
71 if (!empty($call['class'])) {
72 $thing .= $call['class'] . '::';
74 $thing .= $call['function'] . '()';
95 $call = $backtrace[1];
[all …]
/dokuwiki/_test/tests/lib/exe/
H A Dajax_requests.test.php33 * @param string $call
37 public function test_defaultCallsExist($call, $post, $regexp) { argument
40 $response = $request->post(['call'=> $call]+$post, '/lib/exe/ajax.php');
41 $this->assertNotEquals("AJAX call '$call' unknown!\n", $response->getContent());
55 $call = 'unknownCALL';
57 $response = $request->post(['call'=> $call], '/lib/exe/ajax.php');
58 $this->assertEquals("AJAX call '$call' unknown!\n", $response->getContent());
64 $call = 'unknownCALL';
105 $response = $request->post(['call'=> $call, 'q' => 'some-post-param'], '/lib/exe/ajax.php');
110 $this->assertEquals($call, $eventDataTriggered, 'Must pass call name as event data');
[all …]
/dokuwiki/lib/plugins/usermanager/_test/
H A DRemoteApiTest.php58 $this->remote->call('plugin.usermanager.createUser', $params)
64 $this->remote->call('plugin.usermanager.createUser', $params)
89 $this->remote->call('plugin.usermanager.createUser', $params);
113 $this->remote->call('plugin.usermanager.createUser', $params);
137 $this->remote->call('plugin.usermanager.createUser', $params);
161 $this->remote->call('plugin.usermanager.createUser', $params);
186 $this->remote->call('plugin.usermanager.createUser', $params);
216 … $this->assertTrue($this->remote->call('plugin.usermanager.deleteUser', ['user' => 'user1']));
230 $this->remote->call('plugin.usermanager.deleteUser', ['user' => 'user1']);
241 … $this->assertFalse($this->remote->call('plugin.usermanager.deleteUser', ['user' => 'user1']));
[all …]
/dokuwiki/inc/Remote/OpenApiDoc/
H A DOpenAPIGenerator.php153 foreach ($methods as $method => $call) {
155 'post' => $this->getMethodDefinition($method, $call),
164 * @param ApiCall $call The call definition
167 protected function getMethodDefinition(string $method, ApiCall $call) argument
169 $description = $call->getDescription();
170 $links = $call->getDocs()->getTag('link');
178 $retType = $call->getReturn()['type'];
181 'description' => $call->getReturn()['description'],
189 'summary' => $call->getSummary() ?: $method,
191 'tags' => [PhpString::ucwords($call->getCategory())],
[all …]
/dokuwiki/lib/exe/
H A Dajax.php25 $call = $INPUT->filter([Clean::class, 'stripspecials'])->str('call'); variable
26 new Ajax($call);
/dokuwiki/lib/scripts/
H A Ddelay.js57 this.timer = timer.add(function () { _this.exec.call(_this); },
62 _params: Array.prototype.slice.call(arguments, 2)
68 this.func.call(this._data._this, this._data._params);
H A Dhotkeys.js94 return t.onkeyup.call(t,e);
98 return t.onkeypress.call(t,e);
102 return t.onkeydown.call(t,e);
119 v.func.call(t);
231 if (cb.call(s, o[n], n, o) === false)
238 if (cb.call(s, o[n], n, o) === false)
H A Dhelpers.js41 static_args = Aps.call(arguments, 1);
49 static_args.concat(Aps.call(arguments, 0)));
/dokuwiki/inc/Remote/
H A DXmlRpcServer.php50 protected function call($methodname, $args) function in dokuwiki\\Remote\\XmlRpcServer
53 $result = $this->remote->call($methodname, $args);
H A DApi.php105 foreach ($methods as $method => $call) {
106 $this->pluginMethods["plugin.$pluginName.$method"] = $call;
121 public function call($method, $args = []) function in dokuwiki\\Remote\\Api
/dokuwiki/vendor/simplepie/simplepie/src/
H A DLocator.php173 …$base = $this->registry->call(Misc::class, 'absolutize_url', [trim($element->getAttribute('href'))…
211 …$rel = array_unique($this->registry->call(Misc::class, 'space_separated_tokens', [strtolower($link…
215 …$href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $…
217 …$href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $…
223 …l) && $link->hasAttribute('type') && in_array(strtolower($this->registry->call(Misc::class, 'parse…
250 $parsed = $this->registry->call(Misc::class, 'parse_url', [$href]);
253 …$href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $…
255 …$href = $this->registry->call(Misc::class, 'absolutize_url', [trim($link->getAttribute('href')), $…
261 $current = $this->registry->call(Misc::class, 'parse_url', [$this->file->url]);
294 $parsed = $this->registry->call(Misc::class, 'parse_url', [$href]);
[all …]

123