Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 59) sorted by relevance

123

/dokuwiki/vendor/kissifrot/php-ixr/src/Server/
H A DClassServer.php46 foreach ($methods as $method) {
47 if (is_array($method)) {
48 $targetMethod = $method[0];
49 $method = $method[1];
51 $targetMethod = $method;
53 $this->callbacks[$prefix . $this->_delim . $method] = [$prefix, $targetMethod];
62 $method = $this->callbacks[$methodname];
71 if (is_array($method) || (substr($method, 0, 5) == 'this:')) {
72 if (is_array($method)) {
73 $object = $this->_objects[$method[0]];
[all …]
H A DServer.php85 $method = $this->callbacks[$methodname];
95 if (is_string($method) && substr($method, 0, 5) === 'this:') {
97 $method = substr($method, 5);
99 return $this->$method($args);
102 return call_user_func($method, $args);
104 … return new Error(-32601, "server error. requested callable '{$method}' does not exist.");
130 protected function hasMethod($method) argument
132 return in_array($method, array_keys($this->callbacks));
H A DIntrospectionServer.php32 'Returns an array describing the return type and required parameters of a method'
50 'Returns a documentation string for the specified method'
73 $method = $this->callbacks[$methodname];
127 public function methodSignature($method) argument
129 if (!$this->hasMethod($method)) {
130 … return new Error(-32601, 'server error. requested method "' . $method . '" not specified.');
133 $types = $this->signatures[$method];
167 public function methodHelp($method) argument
169 return $this->help[$method];
/dokuwiki/vendor/paragonie/constant_time_encoding/src/
H A DBase32.php251 $method = $upper
287 $c0 = static::$method($chunk[1]);
289 $c1 = static::$method($chunk[2]);
291 $c2 = static::$method($chunk[3]);
293 $c3 = static::$method($chunk[4]);
295 $c4 = static::$method($chunk[5]);
297 $c5 = static::$method($chunk[6]);
299 $c6 = static::$method($chunk[7]);
301 $c7 = static::$method($chunk[8]);
318 $c0 = static::$method($chunk[1]);
[all …]
/dokuwiki/_test/tests/inc/
H A Dauth_password.test.php49 function test_cryptPassword($method, $hash) { argument
52 auth_cryptPassword('foo' . $method, $method, 'abcdefgh12345678912345678912345678')
61 function test_verifyPassword($method, $hash) { argument
62 $this->assertTrue(auth_verifyPassword('foo' . $method, $hash));
63 $this->assertFalse(auth_verifyPassword('bar' . $method, $hash));
71 function test_verifySelf($method, $hash) { argument
72 $hash = auth_cryptPassword('foo' . $method, $method);
73 $this->assertTrue(auth_verifyPassword('foo' . $method, $hash));
81 function test_verifyUnusable($method, $hash) { argument
82 $hash = auth_cryptPassword(null, $method);
H A Dhttpclient_mock.php37 * @param string $method
40 public function sendRequest($url, $data = '', $method = 'GET') { argument
45 $return = parent::sendRequest($url, $data, $method);
/dokuwiki/inc/Remote/
H A DApiCall.php15 protected $method; variable in dokuwiki\\Remote\\ApiCall
29 * @param string|array $method Either [object,'method'] or 'function'
32 public function __construct($method, $category = '') argument
34 if (!is_callable($method)) {
38 $this->method = $method;
55 return call_user_func_array($this->method, $args);
69 if (is_array($this->method)) {
70 $reflect = new ReflectionMethod($this->method[0], $this->method[1]);
72 $reflect = new ReflectionFunction($this->method);
H A DApi.php105 foreach ($methods as $method => $call) {
106 $this->pluginMethods["plugin.$pluginName.$method"] = $call;
116 * @param string $method name of the method to call.
121 public function call($method, $args = []) argument
130 if (!isset($methods[$method])) {
133 $this->ensureAccessIsAllowed($methods[$method]);
137 return $methods[$method]($args);
160 * @param ApiCall $method
164 public function ensureAccessIsAllowed(ApiCall $method) argument
170 if ($method->isPublic()) return; // public methods are always allowed
H A DJsonRpcServer.php89 $method = $data['method'];
109 $method = $INPUT->server->str('PATH_INFO');
110 $method = trim($method, '/');
116 $return['result'] = $this->call($method, $params);
/dokuwiki/vendor/kissifrot/php-ixr/src/Request/
H A DRequest.php15 private $method; variable in IXR\\Request\\Request
19 public function __construct($method, $args) argument
21 $this->method = $method;
26 <methodName>{$this->method}</methodName>
/dokuwiki/inc/Remote/OpenApiDoc/
H A DDocBlockClass.php42 foreach ($this->reflector->getMethods() as $method) {
44 if ($method->isConstructor()) continue;
45 if ($method->isDestructor()) continue;
46 if (!$method->isPublic()) continue;
47 $this->methods[$method->getName()] = new DocBlockMethod($method);
H A DOpenAPIGenerator.php69 $method = '';
73 $method = $match[1];
79 'method' => $method,
88 'method' => $method,
153 foreach ($methods as $method => $call) {
154 $this->documentation['paths']['/' . $method] = [
155 'post' => $this->getMethodDefinition($method, $call),
163 * @param string $method API method name
167 protected function getMethodDefinition(string $method, ApiCall $call) argument
188 'operationId' => $method,
[all …]
/dokuwiki/inc/HTTP/
H A DDokuHTTPClient.php59 * @param string $method
62 public function sendRequest($url, $data = '', $method = 'GET') argument
67 'method' => $method
73 $method = $httpdata['method'];
77 return parent::sendRequest($url, $data, $method);
/dokuwiki/inc/Extension/
H A DEventHandler.php46 * @param string|callable $method event handler function
50 public function register_hook($event, $advise, $obj, $method, $param = null, $seq = 0) argument
54 $this->hooks[$event . '_' . $advise][$seq][] = [$obj, $method, $param];
75 [$obj, $method, $param] = $hook;
78 $method($event, $param);
80 $obj->$method($event, $param);
H A DRemotePlugin.php41 foreach ($reflection->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
43 $declaredin = $method->getDeclaringClass()->name;
47 $method_name = $method->name;
/dokuwiki/_test/tests/Remote/OpenApiDoc/
H A DDocBlockClassTest.php43 $method = $doc->getMethodDocs()['testClass'];
44 $this->assertInstanceOf(DocBlockMethod::class, $method);
46 $methodReturn = $method->getReturn();
/dokuwiki/_test/tests/inc/parser/
H A Dlexer.test.php161 $handler->expects($this->never())->method('accept');
167 $handler->expects($this->never())->method('accept');
188 ->method('accept')
214 ->method('accept')
242 ->method('a')
273 foreach ($methodArguments as $method => $arguments) {
277 ->method($method)
309 foreach ($methodArguments as $method => $arguments) {
313 ->method($method)
340 foreach ($methodArguments as $method => $arguments) {
[all …]
/dokuwiki/inc/
H A DPassHash.php34 $method = '';
47 $method = 'smd5';
51 $method = 'apr1';
55 $method = 'drupal_sha512';
59 $method = 'pmd5';
63 $method = 'pmd5';
67 $method = 'djangopbkdf2';
71 $method = 'seafilepbkdf2';
75 $method = 'djangosha1';
78 $method = 'djangomd5';
[all …]
/dokuwiki/lib/plugins/info/
H A Dsyntax.php186 foreach ($methods as $method) {
187 $title = '$' . $p . '->' . $method['name'] . '()';
192 $doc .= '<tr><th>Description</th><td colspan="2">' . $method['desc'] .
194 if ($method['params']) {
195 $c = count($method['params']);
198 foreach ($method['params'] as $desc => $type) {
203 if ($method['return']) {
204 $doc .= '<tr><th>Return value</th><td>' . hsc(key($method['return'])) .
205 '</td><td>' . hsc(current($method['return'])) . '</td></tr>';
/dokuwiki/vendor/simplepie/simplepie/src/Parse/
H A DDate.php606 foreach ($all_methods as $method) {
607 if (strtolower(substr($method, 0, 5)) === 'date_') {
608 $cache[get_class($this)][] = $method;
613 foreach ($cache[get_class($this)] as $method) {
614 $this->built_in[] = $method;
642 foreach ($this->user as $method) {
643 if (($returned = call_user_func($method, $date)) !== false) {
648 foreach ($this->built_in as $method) {
649 if (($returned = call_user_func([$this, $method], $date)) !== false) {
/dokuwiki/vendor/simplepie/simplepie/src/
H A DRegistry.php244 * @param string $method
248 public function &call($type, $method, $parameters = []) argument
258 if ($method === 'get_handler') {
266 $result = call_user_func_array([$class, $method], $parameters);
/dokuwiki/inc/Menu/Item/
H A DAbstractItem.php36 protected $method = 'get'; variable in dokuwiki\\Menu\\Item\\AbstractItem
186 $this->method,
258 'method' => $this->method,
H A DEdit.php23 $this->method = 'post';
/dokuwiki/_test/core/
H A DDokuWikiTest.php230 $method = $class->getMethod($func);
231 $method->setAccessible(true);
232 return $method->invokeArgs($obj, $args);
/dokuwiki/inc/Feed/
H A DFeedParserFile.php36 $this->method = SimplePie::FILE_SOURCE_REMOTE | SimplePie::FILE_SOURCE_FSOCKOPEN;

123