/dokuwiki/inc/Form/ |
D | OptGroup.php | 62 foreach ($options as $key => $val) { 63 if (is_array($val)) { 64 if (!array_key_exists('label', $val)) { 70 array_key_exists('attrs', $val) && 71 is_array($val['attrs']) && 72 array_key_exists('selected', $val['attrs']) 78 $this->options[$key] = $val; 80 $this->options[$val] = ['label' => (string)$val]; 82 $this->options[$key] = ['label' => (string)$val]; 110 foreach ($this->options as $key => $val) { [all …]
|
D | ValueElement.php | 29 $this->val($value); 38 public function val($value = null) function in dokuwiki\\Form\\ValueElement
|
D | LegacyForm.php | 37 ->val($ctl['text']) 118 foreach ($legacy as $key => $val) { 120 $control[substr($key, 1)] = $val; 122 $control[$key] = $val; 124 $control[$key] = $val; 126 $attributes[$key] = $val;
|
D | TextareaElement.php | 34 public function val($value = null) function in dokuwiki\\Form\\TextareaElement 52 formText($this->val()) . '</textarea>';
|
D | Element.php | 97 foreach ((array) $attributes as $key => $val) { 98 $this->attr($key, $val); 149 public function val($value = null) function in dokuwiki\\Form\\Element
|
/dokuwiki/inc/ChangeLog/ |
D | RevisionInfo.php | 64 return (bool) $this->val('current', $value); 75 public function val($key, $value = null) function in dokuwiki\\ChangeLog\\RevisionInfo 97 $this->val($key, $value); 110 $id = $this->val('id'); 111 if ($this->val('mode') == self::MODE_MEDIA) { 114 } elseif ($this->val('mode') == self::MODE_PAGE) { 129 $formatted = dformat($this->val('date')); 130 if ($checkTimestamp && $this->val('timestamp') === false) { 146 return '<span class="sum">' . ' – ' . hsc($this->val('sum')) . '</span>'; 157 if ($this->val('user')) { [all …]
|
/dokuwiki/lib/tpl/ |
D | index.php | 56 foreach ($ini['replacements'] as $key => $val) { 59 echo '<td>' . hsc($val) . '</td>'; 61 if (preg_match('/^#[0-f]{3,6}$/i', $val)) { 62 echo '<div class="color" style="background-color:' . $val . ';"> </div>';
|
/dokuwiki/lib/scripts/ |
D | cookie.js | 21 setValue: function(key,val){ argument 25 if (val === false){ 28 val = val + ""; 29 this.data[key] = val; 34 jQuery.each(_this.data, function (key, val) { argument 36 text.push(encodeURIComponent(key)+'#'+encodeURIComponent(val));
|
D | linkwiz.js | 26 val = { field in LinkWizard 70 this.$entry.val(JSINFO.namespace + ':'); 110 } else if (this.$entry.val()) { 111 this.insertLink(this.$entry.val()); 195 this.$entry.val(a.title); 216 let link = this.$entry.val(); 250 if (externallinkpattern.test(this.$entry.val())) { 257 entry_value = this.$entry.val().replace(/[^:]*$/, '') 259 this.$entry.val(entry_value); 280 if (this.val.open) { [all …]
|
D | toolbar.js | 34 jQuery.each(tb, function (k, val) { argument 35 if (!tb.hasOwnProperty(k) || (!allowblock && val.block === true)) { 41 $btn = jQuery(createToolButton(val.icon, val.title, val.key, val.id, 42 val['class'])); 45 actionFunc = 'tb_'+val.type; 47 $btn.on('click', bind(window[actionFunc],$btn,val,edid) ); 53 actionFunc = 'addBtnAction'+val.type.charAt(0).toUpperCase()+val.type.substring(1); 55 var pickerid = window[actionFunc]($btn, val, edid); 66 alert('unknown toolbar type: '+val.type+' '+actionFunc); 224 dw_linkwiz.val = props;
|
/dokuwiki/lib/plugins/authad/adLDAP/classes/ |
D | adLDAPUsers.php | 135 $val=0; 138 if (in_array("SCRIPT",$options)){ $val=$val+1; } 139 if (in_array("ACCOUNTDISABLE",$options)){ $val=$val+2; } 140 if (in_array("HOMEDIR_REQUIRED",$options)){ $val=$val+8; } 141 if (in_array("LOCKOUT",$options)){ $val=$val+16; } 142 if (in_array("PASSWD_NOTREQD",$options)){ $val=$val+32; } 145 if (in_array("ENCRYPTED_TEXT_PWD_ALLOWED",$options)){ $val=$val+128; } 146 if (in_array("TEMP_DUPLICATE_ACCOUNT",$options)){ $val=$val+256; } 147 if (in_array("NORMAL_ACCOUNT",$options)){ $val=$val+512; } 148 if (in_array("INTERDOMAIN_TRUST_ACCOUNT",$options)){ $val=$val+2048; } [all …]
|
/dokuwiki/inc/Ui/ |
D | Subscribe.php | 93 foreach ($targets as $val => $label) { 94 $data = ($value === $val) ? ['checked' => 'checked'] : []; 95 $form->addRadioButton('sub_target', $label)->val($val)->attrs($data); 103 foreach ($styles as $val => $label) { 104 $data = ($value === $val) ? ['checked' => 'checked'] : []; 105 $form->addRadioButton('sub_style', $label)->val($val)->attrs($data);
|
D | PageDiff.php | 148 $isCurrent = $changelog->isCurrentRevision($RevInfo->val('date')); 151 if ($RevInfo->val('type') == DOKU_CHANGE_TYPE_DELETE || empty($RevInfo->val('type'))) { 154 $rev = $isCurrent ? '' : $RevInfo->val('date'); 195 $rev1Summary = ($this->RevInfo1->val('date')) 199 if ($this->RevInfo2->val('extra') == 'compareWith') { 204 $rev2Summary = ($this->RevInfo2->val('date')) 211 explode("\n", $this->RevInfo1->val('text')), 212 explode("\n", $this->RevInfo2->val('text')) 239 if ($this->RevInfo2->val('extra') !== 'compareWith') { 246 … . '<th' . $classEditType($this->RevInfo1->val('type')) . '>' . $title1 . '</th>' [all …]
|
D | MediaDiff.php | 92 $isCurrent = $changelog->isCurrentRevision($RevInfo->val('date')); 96 $rev = $isCurrent ? '' : $RevInfo->val('date'); 107 && ($this->RevInfo1->val('previewSize')[0] ?? 0) >= 30 108 && ($this->RevInfo2->val('previewSize')[0] ?? 0) >= 30 168 [$rev1, $rev2] = [(int)$this->RevInfo1->val('date'), (int)$this->RevInfo2->val('date')]; 197 $rev1 = $this->RevInfo1->isCurrent() ? '' : $this->RevInfo1->val('date'); 198 $rev2 = $this->RevInfo2->isCurrent() ? '' : $this->RevInfo2->val('date'); 204 $rev1Size = $this->RevInfo1->val('previewSize'); 205 $rev2Size = $this->RevInfo2->val('previewSize'); 241 $rev1 = $this->RevInfo1->isCurrent() ? '' : (int)$this->RevInfo1->val('date'); [all …]
|
D | PageRevisions.php | 76 $class = ($RevInfo->val('type') === DOKU_CHANGE_TYPE_MINOR_EDIT) ? 'minor' : ''; 81 $form->addCheckbox('rev2[]')->val($rev); 83 $form->addCheckbox('rev2[]')->val($rev)->attr('checked', 'checked'); 85 $form->addCheckbox('rev2[]')->val($rev); 87 $form->addCheckbox('')->val($rev)->attr('disabled', 'disabled');
|
D | MediaRevisions.php | 76 $class = ($RevInfo->val('type') === DOKU_CHANGE_TYPE_MINOR_EDIT) ? 'minor' : ''; 81 $form->addCheckbox('rev2[]')->val($rev); 83 $form->addCheckbox('rev2[]')->val($rev); 85 $form->addCheckbox('')->val($rev)->attr('disabled', 'disabled');
|
D | UserRegister.php | 42 ->val($INPUT->post->str('login')); 56 ->val($INPUT->post->str('fullname')); 61 ->val($INPUT->post->str('email'));
|
/dokuwiki/_test/tests/Form/ |
D | DropdownElementTest.php | 18 $this->assertEquals('first', $element->val()); 19 $element->val('second'); 20 $this->assertEquals('second', $element->val()); 21 $element->val('nope'); 22 $this->assertEquals('first', $element->val()); 27 $this->assertEquals('first', $element->val()); 28 $element->val('second'); 29 $this->assertEquals('second', $element->val()); 30 $element->val('nope'); 31 $this->assertEquals('first', $element->val()); [all …]
|
D | CheckableElementTest.php | 14 $form->addRadioButton('foo', 'label text first')->val('first')->attr('checked', 'checked'); 15 $form->addRadioButton('foo', 'label text second')->val('second'); 43 $form->addRadioButton('foo', 'label text first')->val('first')->attr('checked', 'checked'); 44 $form->addRadioButton('foo', 'label text second')->val('second');
|
D | InputElementTest.php | 12 $form->addTextInput('foo', 'label text')->val('this is text'); 35 $form->addTextInput('foo', 'label text')->val('this is text'); 50 $form->addTextInput('foo', 'label text')->val('this is text'); 63 $form->addPasswordInput('foo', 'label text')->val('this is text');
|
/dokuwiki/lib/plugins/acl/ |
D | script.js | 32 current_ns: $frm.find('input[name=ns]').val(), 33 current_id: $frm.find('input[name=id]').val()}), 109 $frm.find('input[name=ns]').val(''); 110 $frm.find('input[name=id]').val(dw_acl.parseatt($link[0].search).id); 112 $frm.find('input[name=ns]').val(dw_acl.parseatt($link[0].search).ns); 113 $frm.find('input[name=id]').val('');
|
/dokuwiki/vendor/splitbrain/lesserphp/src/Functions/ |
D | Strings.php | 61 $val = isset($values[$i]) ? 65 if ($color = Color::coerceColor($val)) { 66 $val = $color; 70 $rep = $this->lessc->compileValue($this->lessc->unwrap($val));
|
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/ |
D | PHP64.php | 56 $val = $this->value; 59 $i = strlen($val); 70 $val = substr($val, 0, 4 + $i); 71 $val = str_pad($val, 4, "\0", STR_PAD_LEFT); 72 if ($val == "\0\0\0\0") { 77 list(, $digit) = unpack('N', substr($val, $i, 4)); 87 $temp = $i > 0 ? ord($val[$i - 1]) : 0;
|
D | PHP32.php | 56 $val = $this->value; 59 $i = strlen($val); 70 $val = substr($val, 0, 4 + $i); 71 $val = str_pad($val, 4, "\0", STR_PAD_LEFT); 72 if ($val == "\0\0\0\0") { 77 list(, $digit) = unpack('N', substr($val, $i, 4));
|
/dokuwiki/inc/ |
D | form.php | 330 foreach ($entries as $val => $cap) { 331 $data = ($value === $val) ? array('checked' => 'checked') : array(); 332 $this->addElement(form_makeRadioField($name, $val, $cap, '', '', $data)); 648 foreach ($values as $val => $text) { 649 $options[] = array($val, $text, (!is_null($selected) && $val == $selected)); 653 foreach ($values as $val) { 654 if (is_array($val)) 655 @list($val, $text) = $val; 657 $options[] = array($val, $text, $val === $selected); 699 foreach ($values as $val => $text) { [all …]
|