src/widgets/Label.php 1 location
|
@@ 37-43 (lines=7) @@
|
34 |
|
echo Html::tag('span', $this->label, ['class' => 'label label-' . $this->cssClasses()]); |
35 |
|
} |
36 |
|
|
37 |
|
protected function cssClasses() |
38 |
|
{ |
39 |
|
$t = mb_strtolower($this->type); |
40 |
|
$v = mb_strtolower($this->value); |
41 |
|
|
42 |
|
return (array_key_exists($v, $this->rules[$t])) ? $this->rules[$t][$v] : $this->defaultCssClass; |
43 |
|
} |
44 |
|
} |
45 |
|
|
src/widgets/Watcher.php 1 location
|
@@ 36-42 (lines=7) @@
|
33 |
|
} |
34 |
|
} |
35 |
|
|
36 |
|
protected function cssClasses() |
37 |
|
{ |
38 |
|
$t = mb_strtolower($this->type); |
39 |
|
$v = mb_strtolower($this->value); |
40 |
|
|
41 |
|
return (array_key_exists($v, $this->rules[$t])) ? $this->rules[$t][$v] : $this->defaultCssClass; |
42 |
|
} |
43 |
|
} |
44 |
|
|