Home
last modified time | relevance | path

Searched refs:call (Results 1 – 25 of 61) 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.php82 $this->remote->call('core.getAPIVersion')
91 $this->remote->call('core.getWikiVersion')
101 $this->remote->call('core.getWikiTitle')
110 $this->remote->call('core.getWikiTime'),
142 $this->assertEquals(AUTH_UPLOAD, $this->remote->call('core.aclCheck', ['page' => $id]));
155 $this->assertEquals(AUTH_EDIT, $this->remote->call('core.aclCheck', ['page' => $id]));
196 $this->remote->call(
240 $this->remote->call(
277 $this->remote->call(
319 $this->remote->call(
[all …]
/dokuwiki/inc/Parsing/Handler/
H A DLists.php24 foreach ($this->calls as $call) {
25 match ($call[0]) {
26 'list_item' => $this->listOpen($call),
27 'list_open' => $this->listStart($call),
28 'list_close' => $this->listEnd($call),
29 default => $this->listContent($call),
37 protected function listStart($call) argument
39 $depth = $this->interpretSyntax($call[1][0], $listType);
45 $this->listCalls[] = ['list' . $listType . '_open', [], $call[2]];
46 $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 DQuote.php21 foreach ($this->calls as $call) {
22 switch ($call[0]) {
26 $this->quoteCalls[] = ['quote_open', [], $call[2]];
29 $quoteLength = $this->getDepth($call[1][0]);
34 $this->quoteCalls[] = ['quote_open', [], $call[2]];
39 $this->quoteCalls[] = ['quote_close', [], $call[2]];
41 } elseif ($call[0] != 'quote_start') {
42 $this->quoteCalls[] = ['linebreak', [], $call[2]];
53 $this->quoteCalls[] = ['quote_close', [], $call[2]];
57 $this->quoteCalls[] = ['quote_close', [], $call[2]];
[all …]
H A DTable.php26 foreach ($this->calls as $call) {
27 switch ($call[0]) {
29 $this->tableStart($call);
32 $this->tableRowClose($call);
33 $this->tableRowOpen(['tablerow_open', $call[1], $call[2]]);
37 $this->tableCell($call);
40 $this->tableRowClose($call);
41 $this->tableEnd($call);
44 $this->tableDefault($call);
53 protected function tableStart($call) argument
[all …]
H A DNest.php29 public function writeCall($call) argument
31 $this->calls[] = $call;
53 foreach ($unmerged_calls as $call) $this->addCall($call);
62 * @param array $call
64 protected function addCall($call) argument
67 if ($key && $call[0] == 'cdata' && $this->calls[$key - 1][0] == 'cdata') {
68 $this->calls[$key - 1][1][0] .= $call[1][0];
69 } elseif ($call[0] == 'eol') {
72 $this->calls[] = $call;
H A DPreformatted.php19 foreach ($this->calls as $call) {
20 switch ($call[0]) {
22 $this->pos = $call[2];
28 $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 DCallWriter.php21 public function writeCall($call) argument
23 $this->Handler->calls[] = $call;
H A DAbstractRewriter.php23 public function writeCall($call) argument
25 $this->calls[] = $call;
/dokuwiki/_test/tests/Parsing/ParserMode/
H A DParserTestBase.php56 * @param array $call a single handler call [method, args, byteindex]
59 private function stripByteIndex(array $call): array argument
61 unset($call[2]);
62 if ($call[0] === 'nest') {
63 $call[1][0] = array_map($this->stripByteIndex(...), $call[1][0]);
65 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/Parsing/ParserMode/
H A DQuotes.php68 $call = $handler->getModeName();
70 if ($call === 'doublequoteclosing' && $handler->getStatus('doublequote') <= 0) {
71 $call = 'doublequoteopening';
74 if ($call === 'doublequoteopening') {
76 } elseif ($call === 'doublequoteclosing') {
80 $handler->addCall($call, [], $pos);
H A DMedia.php111 $call = 'externalmedia';
113 $call = 'internalmedia';
117 'type' => $call,
/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::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);

123