| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function html(\admin_plugin_config $plugin, $echo = false) { |
||
| 29 | |||
| 30 | $disable = $this->isProtected() ? 'disabled="disabled"' : ''; |
||
| 31 | |||
| 32 | $key = htmlspecialchars($this->key); |
||
| 33 | |||
| 34 | $label = '<label for="config___' . $key . '">' . $this->prompt($plugin) . '</label>'; |
||
| 35 | $input = '<input id="config___' . $key . '" name="config[' . $key . |
||
| 36 | ']" autocomplete="off" type="password" class="edit" value="" ' . $disable . ' />'; |
||
| 37 | return array($label, $input); |
||
| 38 | } |
||
| 39 | } |
||
| 40 |