public function getDataCellValue($model, $key, $index)
{
$value = parent::getDataCellValue($model, $key, $index);
if ($this->trueValue !== true) {
if ($value == $this->falseValue) {
return $this->falseIcon;
} else {
return $this->trueIcon;
}
} else {
if ($value !== null) {
return $value ? $this->trueIcon : $this->falseIcon;
}
return $this->showNullAsFalse ? $this->falseIcon : $value;
}
}