Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 44) sorted by relevance

12

/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/
H A DColorOperation.php45 public function saturate(array $args): array argument
47 [$color, $delta] = $this->colorArgs($args);
60 public function desaturate(array $args): array argument
62 [$color, $delta] = $this->colorArgs($args);
75 public function lighten(array $args): array argument
77 [$color, $delta] = $this->colorArgs($args);
90 public function darken(array $args): array argument
92 [$color, $delta] = $this->colorArgs($args);
105 public function fadein(array $args): array argument
107 [$color, $delta] = $this->colorArgs($args);
[all …]
H A DMath.php203 public function pow(array $args): array argument
205 [$base, $exp] = Asserts::assertArgs($args, 2, 'pow');
206 … return ['number', Asserts::assertNumber($base) ** Asserts::assertNumber($exp), $args[2][0][2]];
215 public function mod(array $args): array argument
217 [$a, $b] = Asserts::assertArgs($args, 2, 'mod');
218 return ['number', Asserts::assertNumber($a) % Asserts::assertNumber($b), $args[2][0][2]];
227 public function min(array $args): array argument
229 $values = Asserts::assertMinArgs($args, 1, 'min');
254 public function max(array $args): array argument
256 $values = Asserts::assertMinArgs($args, 1, 'max');
H A DStrings.php51 public function format(array $args) : array argument
53 if ($args[0] != 'list') return $args;
54 $values = $args[2];
H A DMisc.php44 public function convert(array $args): array argument
46 [$value, $to] = Asserts::assertArgs($args, 2, 'convert');
/dokuwiki/vendor/splitbrain/slika/src/
H A DImageMagickAdapter.php12 protected $args = []; variable in splitbrain\\slika\\ImageMagickAdapter
23 $this->args[] = $this->options['imconvert'];
24 $this->args[] = $imagepath;
30 $this->args[] = '-auto-orient';
43 $this->args[] = '-rotate';
45 $this->args[] = '180';
47 $this->args[] = '90';
49 $this->args[] = '270';
54 $this->args[] = '-flop';
73 $this->args[] = '-resize';
[all …]
/dokuwiki/_test/tests/inc/
H A Dcommon_ml.test.php21 $args = array('a' => 'b', 'c' => 'd', 'q' => '&ä');
24 $this->assertEquals($expect, ml('some:img.jpg', $args));
32 $args = 'a=b&c=d';
35 $this->assertEquals($expect, ml('some:img.png', $args));
43 $args = 'a=b,c=d';
46 $this->assertEquals($expect, ml('some:img.gif', $args));
57 $args = array('w' => $w);
61 $this->assertEquals($expect, ml($id, $args));
71 $args = 'w='.$w;
75 $this->assertEquals($expect, ml($id, $args));
[all …]
H A Dcommon_wl.test.php73 $args = array('a' => 'b', 'c' => 'd', 'q' => '&ä');
76 $this->assertEquals($expect, wl('some:', $args));
84 $args = 'a=b&c=d';
87 $this->assertEquals($expect, wl('some:', $args));
95 $args = 'a=b,c=d';
98 $this->assertEquals($expect, wl('some:', $args));
160 $args = array('a' => 'b', 'c' => 'd', 'rev' => '');
163 $this->assertEquals($expect, wl('some:', $args));
H A Dhttpclient_http.test.php25 $this->assertArrayHasKey('args', $resp);
26 $this->assertEquals(['foo' => ['bar']], $resp['args']);
42 $this->assertArrayHasKey('args', $resp);
43 $this->assertEquals(['foo' => ['bar']], $resp['args']);
/dokuwiki/vendor/kissifrot/php-ixr/src/Request/
H A DRequest.php16 private $args; variable in IXR\\Request\\Request
19 public function __construct($method, $args) argument
22 $this->args = $args;
30 foreach ($this->args as $arg) {
/dokuwiki/inc/Remote/
H A DApiCall.php47 * @param array $args
50 public function __invoke($args) argument
52 if (!array_is_list($args)) {
53 $args = $this->namedArgsToPositional($args);
55 return call_user_func_array($this->method, $args);
165 $args = [];
169 $args[] = $params[$arg];
171 $args[] = $arginfo['default'];
177 return $args;
H A DApi.php117 * @param array $args arguments to pass to the given method
121 public function call($method, $args = []) argument
123 if ($args === null) {
124 $args = [];
137 return $methods[$method]($args);
H A DXmlRpcServer.php50 protected function call($methodname, $args) argument
53 $result = $this->remote->call($methodname, $args);
H A DJsonRpcServer.php169 * @param array $args
173 public function call($methodname, $args) argument
176 return $this->remote->call($methodname, $args);
/dokuwiki/vendor/kissifrot/php-ixr/src/Server/
H A DClassServer.php57 public function call($methodname, $args) argument
65 if (count($args) == 1) {
67 $args = $args[0];
86 $result = $object->$method($args);
94 $result = $method($args);
H A DIntrospectionServer.php64 if ($args && !is_array($args)) {
65 $args = [$args];
78 if (count($args) != count($signature)) {
84 $argsbackup = $args;
85 for ($i = 0, $j = count($args); $i < $j; $i++) {
86 $arg = array_shift($args);
H A DServer.php80 protected function call($methodname, $args) argument
88 if (is_array($args) && count($args) == 1) {
90 $args = $args[0];
99 return $this->$method($args);
102 return call_user_func($method, $args);
/dokuwiki/vendor/kissifrot/php-ixr/src/Client/
H A DClientMulticall.php22 $args = func_get_args();
23 $methodName = array_shift($args);
26 'params' => $args
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DDH.php82 public static function createParameters(...$args) argument
90 if (count($args) == 2 && $args[0] instanceof BigInteger && $args[1] instanceof BigInteger) {
94 $params->prime = $args[0];
95 $params->base = $args[1];
97 } elseif (count($args) == 1 && is_numeric($args[0])) {
98 $params->prime = BigInteger::randomPrime($args[0]);
101 } elseif (count($args) != 1 || !is_string($args[0])) {
104 switch ($args[0]) {
H A DDSA.php184 public static function createKey(...$args) argument
197 if (count($args) == 2 && is_int($args[0]) && is_int($args[1])) {
198 $params = self::createParameters($args[0], $args[1]);
199 } elseif (count($args) == 1 && $args[0] instanceof Parameters) {
200 $params = $args[0];
201 } elseif (!count($args)) {
/dokuwiki/_test/tests/Remote/
H A DApiCallTest.php39 $args = $call->getArgs();
40 $this->assertIsArray($args);
41 $this->assertArrayHasKey('foo', $args);
59 $args = $call->getArgs();
60 $this->assertIsArray($args);
61 $this->assertArrayHasKey('file', $args);
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DOptions.php26 protected $args = array(); variable in splitbrain\\phpcli\\Options
60 $this->args = $this->readPHPArgv();
61 $this->bin = basename(array_shift($this->args));
193 $argc = count($this->args);
225 $argc = count($this->args);
227 $arg = $this->args[$i];
232 $non_opts = array_merge($non_opts, array_slice($this->args, $i + 1));
238 $non_opts = array_merge($non_opts, array_slice($this->args, $i));
244 $non_opts = array_merge($non_opts, array_slice($this->args, $i));
260 … if (is_null($val) && $i + 1 < $argc && !preg_match('/^--?[\w]/', $this->args[$i + 1])) {
[all …]
/dokuwiki/lib/plugins/usermanager/
H A Dcli.php142 * @param array $args
145 protected function cmdAdd(bool $notify, array $args) argument
155 [$login, $mail, $name, $grps, $pass] = $args;
188 * @param array $args
191 protected function cmdDelete(array $args) argument
201 $users = explode(',', $args[0]);
218 * @param array $args
221 protected function cmdAddToGroup(array $args) argument
226 [$name, $newgrps] = $args;
256 * @param array $args
[all …]
/dokuwiki/bin/
H A Ddwpage.php160 $args = $options->getArgs();
163 $wiki_id = array_shift($args);
164 $localfile = array_shift($args);
168 $localfile = array_shift($args);
169 $wiki_id = array_shift($args);
178 $wiki_id = array_shift($args);
183 $wiki_id = array_shift($args);
188 $wiki_id = array_shift($args);
189 $key = trim(array_shift($args));
H A Dgittool.php88 $args = $options->getArgs();
89 if (!$command) $command = array_shift($args);
96 $this->cmdClone($args);
99 $this->cmdInstall($args);
106 $this->cmdGit($command, $args);
/dokuwiki/inc/
H A Dfulltext.php608 * @param array $args An array of page arrays
611 function ft_resultCombine($args) argument
613 $array_count = count($args);
615 return $args[0];
620 foreach ($args[0] as $key => $value) {
623 if (!isset($args[$i][$key])) {
627 $result[$key] += $args[$i][$key];
639 * @param array $args An array of page arrays
644 function ft_resultUnite($args) argument
646 $array_count = count($args);
[all …]

12