1 | <?php |
||
14 | class BooleanColumn extends DataColumn |
||
15 | { |
||
16 | /** |
||
17 | * @var string $onTrue the contents to display when value is true. |
||
18 | */ |
||
19 | public $onTrue = '<span class="glyphicon glyphicon-ok text-success"></span>'; |
||
20 | /** |
||
21 | * @var string $onFalse the contents to display when value is false. |
||
22 | */ |
||
23 | public $onFalse = '<span class="glyphicon glyphicon-remove text-danger"></span>'; |
||
24 | /** |
||
25 | * @inheritdoc |
||
26 | */ |
||
27 | public $format = 'html'; |
||
28 | /** |
||
29 | * @var bool whether to display empty values with the $onFalse contents. |
||
30 | */ |
||
31 | public $treatEmptyAsFalse = false; |
||
32 | |||
33 | /** |
||
34 | * @inheritdoc |
||
35 | */ |
||
36 | public function renderDataCell($model, $key, $index) |
||
47 | |||
48 | /** |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | public function getDataCellValue($model, $key, $index) |
||
60 | } |
||
61 |