-
Notifications
You must be signed in to change notification settings - Fork 0
/
Html.php
executable file
·33 lines (30 loc) · 1.15 KB
/
Html.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
namespace makroxyz\materializecss;
use yii\helpers\ArrayHelper;
class Html extends \yii\helpers\BaseHtml
{
// /**
// * @inheritdoc
// */
// public static function checkbox($name, $checked = false, $options = [])
// {
// $options['checked'] = (bool) $checked;
// $value = array_key_exists('value', $options) ? $options['value'] : '1';
// if (isset($options['uncheck'])) {
// // add a hidden field so that if the checkbox is not selected, it still submits a value
// $hidden = static::hiddenInput($name, $options['uncheck']);
// unset($options['uncheck']);
// } else {
// $hidden = '';
// }
//
// $content = static::input('checkbox', $name, $value, $options);
//
// if (isset($options['label'])) {
// $label = ArrayHelper::remove($options, 'label', '');
// $labelOptions = ArrayHelper::remove($options, 'labelOptions', []);
// $content .= static::label($label, ArrayHelper::getValue($options, 'id', null), $labelOptions);
// }
// return $hidden . $content;
// }
}