Home
last modified time | relevance | path

Searched refs:input (Results 1 – 25 of 79) sorted by relevance

1234

/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingImConvert.php11 public function update($input) argument
15 $input = trim($input);
18 if ($value == $input) return false;
20 if ($input && !file_exists($input)) {
22 $this->input = $input;
26 $this->local = $input;
H A DSettingMulticheckbox.php15 public function update($input) argument
20 $input = $input ?: [];
21 $input = $this->array2str($input);
24 if ($value == $input) return false;
26 if ($this->pattern && !preg_match($this->pattern, $input)) {
28 $this->input = $input;
32 $this->local = $input;
46 $value = $this->input;
57 $input = '';
69 $input .= '<div class="selection' . $class . '">' . "\n";
[all …]
H A DSettingArray.php40 * @param string $input
43 public function update($input) argument
45 if (is_null($input)) return false;
48 $input = $this->fromString($input);
51 if ($value == $input) return false;
53 foreach ($input as $item) {
56 $this->input = $input;
61 $this->local = $input;
74 $value = $this->input;
83 $input = '<input id="config___' . $key . '" name="config[' . $key .
[all …]
H A DSettingPassword.php13 public function update($input) argument
16 if (!$input) return false;
18 if ($this->pattern && !preg_match($this->pattern, $input)) {
20 $this->input = $input;
24 $this->local = conf_encodeString($input, $this->code);
37 $input = '<input id="config___' . $key . '" name="config[' . $key .
39 return [$label, $input];
H A DSettingNumericopt.php17 public function update($input) argument
19 if ($input === '') {
20 if ($input == $this->local) return false;
21 $this->local = $input;
25 return parent::update($input);
H A DSettingSavedir.php11 public function update($input) argument
16 if ($value == $input) return false;
18 if (!init_path($input)) {
20 $this->input = $input;
24 $this->local = $input;
H A DSettingEmail.php14 public function update($input) argument
16 if (is_null($input)) return false;
20 if ($value == $input) return false;
21 if ($input === '') {
22 $this->local = $input;
25 $mail = $input;
52 $this->input = $input;
57 $this->local = $input;
H A DSettingRegex.php14 public function update($input) argument
19 if (!parent::update($input)) return false;
23 $regex = $this->delimiter . $input . $this->delimiter . $this->pregflags;
27 $this->input = $input;
32 $this->local = $input;
H A DSettingMultichoice.php40 $input = "<div class=\"input\">\n";
41 …$input .= '<select class="edit" id="config___' . $key . '" name="config[' . $key . ']"' . $disable…
52 … $input .= ' <option value="' . $choice . '"' . $selected . ' >' . $option . '</option>' . "\n";
54 $input .= "</select> $nochoice \n";
55 $input .= "</div>\n";
57 return [$label, $input];
61 public function update($input) argument
63 if (is_null($input)) return false;
67 if ($value == $input) return false;
69 if (!in_array($input, $this->choices)) return false;
[all …]
H A DSettingAuthtype.php25 public function update($input) argument
32 … if (!parent::update($input)) return false; // nothing changed or an error caught by parent
36 $auth_plugin = $plugin_controller->load('auth', $input);
41 msg('Cannot load Auth Plugin "' . $input . '"', -1);
48 msg('Cannot create Auth Plugin "' . $input . '"', -1);
54 if ($conf['authtype'] != $input) {
59 $this->local = $input;
H A DSettingOnoff.php43 $input = '<div class="input"><input id="config___' . $key . '" name="config[' . $key .
45 return [$label, $input];
49 public function update($input) argument
53 $input = ($input) ? 1 : 0;
55 if ($value == $input) return false;
57 $this->local = $input;
H A DSetting.php27 protected $input; // only used by those classes which error check variable in dokuwiki\\plugin\\config\\core\\Setting\\Setting
74 * @param mixed $input the new value
77 public function update($input) argument
79 if (is_null($input)) return false;
81 $input = $this->cleanValue($input);
84 if ($value == $input) return false;
87 if ($this->pattern && !preg_match($this->pattern, $input)) {
89 $this->input = $input;
94 $this->local = $input;
205 $value = $this->input;
[all …]
/dokuwiki/_test/tests/Form/
H A DButtonElementTest.php19 $input = $pq->find('button[name=foo]');
20 $this->assertTrue($input->count() == 1);
21 $this->assertEquals('bam', $input->attr('value'));
22 $this->assertEquals('submit', $input->attr('type'));
23 $this->assertEquals('Hello <b>World</b>', $input->text()); // tags were escaped
25 $b = $input->find('b'); // no tags found
37 $input = $pq->find('button[name=foo]');
38 $this->assertTrue($input->count() == 1);
39 $this->assertEquals('bam', $input->attr('value'));
40 $this->assertEquals('submit', $input->attr('type'));
[all …]
H A DInputElementTest.php17 $input = $pq->find('input[name=foo]');
18 $this->assertTrue($input->count() == 1);
19 $this->assertEquals('this is text', $input->attr('value'));
20 $this->assertEquals('text', $input->attr('type'));
40 $input = $pq->find('input[name=foo]');
41 $this->assertTrue($input->count() == 1);
42 $this->assertEquals('a new text', $input->attr('value'));
55 $input = $pq->find('input[name=foo]');
56 $this->assertTrue($input->count() == 1);
57 $this->assertEquals('', $input->attr('value'));
[all …]
/dokuwiki/_test/tests/inc/
H A Dpageutils_nons.test.php8 public function test_noNS($input, $expected) argument
13 $this->assertSame($expected, noNS($input), $input);
29 public function test_noNSorNS($input, $expected) argument
34 $this->assertSame($expected, noNSorNS($input), $input);
H A Dfulltext_query.test.php75 $input = [
94 $input['and'],
95 $input['not'],
96 $input['phrases'],
97 $input['ns'],
98 $input['notns']
H A Dauth_deleteprofile.test.php26 $input = array(
33 $_POST = $input;
34 $_REQUEST = $input;
51 $input = array(
59 $_POST = $input;
60 $_REQUEST = $input;
82 $input = array(
89 $_POST = $input;
90 $_REQUEST = $input;
106 $input = array(
[all …]
H A Dutf8_strtolower.test.php26 * @param string $input
29 public function testGivens($input, $expected) argument
31 $this->assertEquals($expected, \dokuwiki\Utf8\PhpString::strtolower($input));
33 $this->assertEquals($expected, mb_strtolower($input, 'utf-8'), 'mbstring check');
/dokuwiki/lib/plugins/styling/_test/
H A Dcolors.test.php29 * @param string $input
35 public function testColorType($input, $expect) argument
38 $output = $this->callInaccessibleMethod($plugin, 'colorType', [$input]);
60 * @param string $input
66 public function testColorValue($input, $expect) argument
69 $output = $this->callInaccessibleMethod($plugin, 'colorValue', [$input]);
/dokuwiki/_test/tests/test/
H A Dedit_and_save.test.php19 $input = array(
24 $response = $request->post($input);
50 $input = array();
52 $input[$match[1]] = $match[2];
54 $this->assertEquals($input['hid'], $idA[1]);
57 $response = $request->post($input, '/doku.php');
72 $input = array();
74 $input[$match[1]] = $match[2];
76 $this->assertEquals($input['hid'], $idA[1]);
77 $input['do'] = 'save';
[all …]
/dokuwiki/inc/Ui/
H A DUserRegister.php41 $input = $form->addTextInput('login', $lang['user'])->attrs($base_attrs)->addClass('edit')
43 $input->getLabel()->attr('class', 'block');
47 … $input = $form->addPasswordInput('pass', $lang['pass'])->attrs($base_attrs)->addClass('edit');
48 $input->getLabel()->attr('class', 'block');
50 …$input = $form->addPasswordInput('passchk', $lang['passchk'])->attrs($base_attrs)->addClass('edit'…
51 $input->getLabel()->attr('class', 'block');
55 … $input = $form->addTextInput('fullname', $lang['fullname'])->attrs($base_attrs)->addClass('edit')
57 $input->getLabel()->attr('class', 'block');
60 $input = $form->addTextInput('email', $lang['email'])->attrs($email_attrs)->addClass('edit')
62 $input->getLabel()->attr('class', 'block');
H A DUserProfile.php63 $input = $form->addPasswordInput('oldpass', $lang['oldpass'])->attrs($attr)
65 $input->getLabel()->attr('class', 'block');
87 $input = $form->addTextInput('login', $lang['user'])
91 $input->getLabel()->attr('class', 'block');
96 $input = $form->addTextInput('fullname', $lang['fullname'])
100 $input->getLabel()->attr('class', 'block');
105 $input = $form->addTextInput('email', $lang['email'])
109 $input->getLabel()->attr('class', 'block');
114 … $input = $form->addPasswordInput('newpass', $lang['newpass'])->attrs($attr)->addClass('edit');
115 $input->getLabel()->attr('class', 'block');
[all …]
H A DUserResendPwd.php61 … $input = $form->addPasswordInput('pass', $lang['pass'])->attr('size', '50')->addClass('edit');
62 $input->getLabel()->attr('class', 'block');
64 …$input = $form->addPasswordInput('passchk', $lang['passchk'])->attr('size', '50')->addClass('edit'…
65 $input->getLabel()->attr('class', 'block');
90 $input = $form->addTextInput('login', $lang['user'])->addClass('edit');
91 $input->getLabel()->attr('class', 'block');
/dokuwiki/_test/tests/lib/exe/
H A Dcss_css_compress.test.php95 $input = array(
129 $input = array_map('css_compress', $input);
131 $this->assertEquals($expected, $input);
135 …$input = 'list-style-image: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAA…
138 $this->assertEquals($expect, css_compress($input));
142 …$input = '/* "blockcomment" */ content: "/* STR2 : STR1 */ thisis : inquote"; STR1: 10px; STR2:"S…
145 $this->assertEquals($expect, css_compress($input));
/dokuwiki/inc/Form/
H A DCheckableElement.php47 $input = $INPUT->arr($name);
48 if (isset($input[$key])) {
52 if (is_array($input[$key])) {
53 $input = $input[$key];
56 foreach ($input as $value) {

1234